Skip to content

Commit 937820f

Browse files
authored
Merge pull request #48 from GrantBirki/add-release-attestations
Add release bundle attestations
2 parents 93a7ff5 + 5661723 commit 937820f

5 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88
- src/version.ts
99

1010
permissions:
11+
attestations: write
12+
artifact-metadata: write
1113
contents: write
14+
id-token: write
1215

1316
concurrency:
1417
group: release
@@ -101,6 +104,13 @@ jobs:
101104
exit 1
102105
fi
103106
107+
- name: attest release bundle
108+
uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # pin@v4.1.1
109+
with:
110+
subject-path: |
111+
action.yml
112+
dist/**
113+
104114
- name: create release tag
105115
id: release-tag
106116
env:

AGENTS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ The CI workflows are intentionally separated:
251251
reactions fail.
252252
- `.github/workflows/release.yml` runs on pushes to `main` that change
253253
`src/version.ts`. It validates the committed bundle, creates the immutable
254-
release tag, creates a GitHub release, and moves the matching major tag.
254+
release tag, creates provenance attestations, creates a GitHub release, and
255+
moves the matching major tag.
255256

256257
When changing workflows, follow the pattern used here and in
257258
`/Users/birki/code/branch-deploy`: clear job names, explicit permissions,
@@ -269,8 +270,9 @@ High-level release flow:
269270
same pull request.
270271
3. Merge the pull request to protected `main`.
271272
4. Let `.github/workflows/release.yml` validate the bundle, create the
272-
immutable release tag, create the GitHub release with generated notes, and
273-
move the matching major tag such as `v3`.
273+
immutable release tag, create provenance attestations for `action.yml` and
274+
`dist/**`, create the GitHub release with generated notes, and move the
275+
matching major tag such as `v3`.
274276

275277
`src/version.ts` is the only release version source. `package.json` intentionally
276278
keeps `0.0.0` because this repository is released as a GitHub Action, not an npm

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = 'v3.0.2' as const
1+
export const VERSION = 'v3.0.3' as const

0 commit comments

Comments
 (0)