Skip to content

ci: link each release's npm publish as artifact metadata - #916

Merged
Mearman merged 1 commit into
mainfrom
ci/link-npm-publishes-as-artifact-metadata
Sep 4, 2026
Merged

ci: link each release's npm publish as artifact metadata#916
Mearman merged 1 commit into
mainfrom
ci/link-npm-publishes-as-artifact-metadata

Conversation

@Mearman

@Mearman Mearman commented Sep 4, 2026

Copy link
Copy Markdown
Member

Adds a step to the attest-release-artifacts job that records each released package's npm registry location via POST /orgs/{org}/artifacts/metadata/storage-record, using the same sha256 digest actions/attest just signed for build provenance — so it shows up on the org's own linked-artifacts page (Packages tab) pointing at the real npm tarball.

GITHUB_TOKEN has no permission for this org-level endpoint (confirmed via a live test call with a classic token carrying admin:org, which still 404'd — this genuinely needs the newer artifact-metadata App-style permission, not any classic OAuth scope). The step mints a token from the documents-js GitHub App the release job already uses for its own elevated pushes, scoped down with permission-artifact-metadata: write to just what this one call needs rather than inheriting the App's other permissions.

Requires the documents-js App's installation on ExaDev to already carry the Artifact metadata permission — confirmed live via the API before opening this PR.

… linked-artifacts page

Adds a step to the attest-release-artifacts job that records each released package's npm
registry location via POST /orgs/{org}/artifacts/metadata/storage-record, using the same
sha256 digest actions/attest just signed for build provenance.

GITHUB_TOKEN has no equivalent permission for this org-level endpoint, so the step mints a
token from the documents-js GitHub App the release job already uses for its own elevated
pushes, scoped down to only the artifact-metadata permission this one call needs.
@Mearman
Mearman marked this pull request as ready for review September 4, 2026 15:07
@Mearman
Mearman merged commit 5460a10 into main Sep 4, 2026
17 checks passed
@Mearman
Mearman deleted the ci/link-npm-publishes-as-artifact-metadata branch September 4, 2026 15:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-04T15:17:28.501245Z ea8486e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant