Skip to content

Commit 045501a

Browse files
metcalfcclaude
andcommitted
fix: add build provenance attestation to release workflow
- Add actions/attest-build-provenance step to sign dist/index.js via Sigstore so consumers can verify releases - Add id-token and attestations permissions for OIDC signing - Update SECURITY.md to use private vulnerability reporting These changes were lost during the rebase merge of #404. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2be9bc1 commit 045501a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
release:
1010
permissions:
1111
contents: write
12+
id-token: write
13+
attestations: write
1214
runs-on: ubuntu-latest
1315
steps:
1416
# To use this repository's private action, you must check out the repository
@@ -19,6 +21,10 @@ jobs:
1921
uses: metcalfc/changelog-generator@3f82cef08fe5dcf57c591fe165e70e1d5032e15a # was: metcalfc/changelog-generator@v4.6.2
2022
with:
2123
myToken: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Attest build provenance
25+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # was: actions/attest-build-provenance@v2
26+
with:
27+
subject-path: 'dist/index.js'
2228
- name: Create Release
2329
id: create_release
2430
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # was: ncipollo/release-action@v1

SECURITY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99

1010
## Reporting a Vulnerability
1111

12-
File an issue.
12+
**Please do not report security vulnerabilities through public GitHub issues.**
13+
14+
Use [GitHub's private vulnerability reporting](https://github.com/metcalfc/changelog-generator/security/advisories/new) to submit a report. You should receive a response within 48 hours.

0 commit comments

Comments
 (0)