Skip to content

ci: add build provenance attestation for dist/index.js#31

Merged
kurok merged 1 commit into
mainfrom
feat/attestations
May 27, 2026
Merged

ci: add build provenance attestation for dist/index.js#31
kurok merged 1 commit into
mainfrom
feat/attestations

Conversation

@kurok
Copy link
Copy Markdown

@kurok kurok commented May 27, 2026

Summary

  • Adds actions/attest-build-provenance@v2 to the package.yml workflow
  • Generates a signed SLSA provenance attestation for dist/index.js after each build
  • Attestations are visible at https://github.com/namecheap/ec2-github-runner/attestations
  • Required permissions added: id-token: write, attestations: write

How it works

After npm run package builds the dist bundle, the attest step signs it using GitHub's OIDC token and publishes the attestation to the GitHub Sigstore-compatible store. Anyone can verify the artifact with:

gh attestation verify dist/index.js --repo namecheap/ec2-github-runner

Test plan

Signed-off-by: yuriyryabikov <22548029+kurok@users.noreply.github.com>
@kurok kurok merged commit b83bcf6 into main May 27, 2026
4 checks passed
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