Repository navigation
[AUTH-01] Verify Agent Access release preparation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * text=auto eol=lf | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 New .gitattributes eol=lf normalization can change the working-tree bytes of previously committed files, shifting release tarball bytes ( A fresh checkout of an unchanged commit can now produce different file bytes than before, which directly conflicts with this PR's "exact tarball bytes" guarantee. Concrete scenario: the new Evidence: the file is new (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked all 45 tracked text blobs at the exact base a444e21: zero contain CRLF. Renormalization produced no application-source diff. The new attribute is itself part of a new commit; fresh checkouts of the old commit do not acquire it. The release guarantee transfers one prepared artifact and compares its exact registry bytes; it does not reuse hashes across different source commits or rebuild old artifacts under changed local configuration. Agent Access is still unpublished. This closes the stated historical-byte proof gap. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: Set up reviewed release npm | ||
| description: Verify and extract the pinned npm CLI without installing project dependencies. | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Verify and extract pinned npm | ||
| shell: bash | ||
| env: | ||
| NPM_VERSION: 11.18.0 | ||
| NPM_TARBALL_SHA256: 73f6155215ebabf4ed96dca1f567c2372cc713c33af2e5b9b62fde4e92373e2e | ||
| run: | | ||
| set -euo pipefail | ||
| tarball="${RUNNER_TEMP}/npm-${NPM_VERSION}.tgz" | ||
| npm_root="${RUNNER_TEMP}/release-npm-${NPM_VERSION}" | ||
| curl --fail --silent --show-error --location --retry 3 \ | ||
| "https://registry.npmjs.org/npm/-/npm-${NPM_VERSION}.tgz" \ | ||
| --output "${tarball}" | ||
| echo "${NPM_TARBALL_SHA256} ${tarball}" | sha256sum --check --strict --quiet | ||
| mkdir "${npm_root}" | ||
| tar --extract --gzip --file "${tarball}" --directory "${npm_root}" | ||
| npm_cli="${npm_root}/package/bin/npm-cli.js" | ||
| if [[ "$(node "${npm_cli}" --version)" != "${NPM_VERSION}" ]]; then | ||
| echo "::error::The reviewed npm version is not active" | ||
| exit 1 | ||
| fi | ||
| printf 'RELEASE_NPM_CLI=%s\nRELEASE_NPM_VERSION=%s\n' "${npm_cli}" "${NPM_VERSION}" >> "${GITHUB_ENV}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔵 Blanket text normalization can corrupt binary artifacts (
nit)Failure scenario: a future commit adds a binary file (e.g.,
*.png,*.tgz,*.woff2) and* text=auto eol=lfcauses Git to normalizeCRLF→LFor treat the blob as text, corrupting the checked-out bytes or the packed npm tarball hash.The diff adds
.gitattributeswith* text=auto eol=lfwith nobinaryexceptions. Existing repo contains no binary allowlist andprepareArtifactshashes tarball bytes exactly. Corrupted checkout would cause manifestshasum/integritymismatches or broken images/fonts.Checked: read
.gitattributes, listeddocs/, grepped for existing binary handling. No counterevidence of*.tgz binaryorlinguistoverrides was found; neighborsci.yml/publish.ymldo not set it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text=auto preserves Git's binary detection; it does not force all files to text. See the documented text=auto behavior: https://git-scm.com/docs/gitattributes#_text . The current package inventory only publishes metadata, README/LICENSE and generated JavaScript/declarations, and tarballs are ignored. No current tracked binary corruption is demonstrated. An exception for a future unusual binary file belongs with that actual file if Git misclassifies it.