Skip to content

Commit 0264fe6

Browse files
committed
feat: uv release artifact attestations
1 parent c21b11e commit 0264fe6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
name: Release
1717
permissions:
18+
"attestations": "write"
1819
"contents": "write"
20+
"id-token": "write"
1921

2022
# This task will run whenever you workflow_dispatch with a tag that looks like a version
2123
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
@@ -251,6 +253,15 @@ jobs:
251253
run: |
252254
# Remove the granular manifests
253255
rm -f artifacts/*-dist-manifest.json
256+
- name: Attest
257+
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2
258+
with:
259+
subject-path: |
260+
artifacts/*.json
261+
artifacts/*.sh
262+
artifacts/*.ps1
263+
artifacts/*.zip
264+
artifacts/*.tar.gz
254265
- name: Create GitHub Release
255266
env:
256267
PRERELEASE_FLAG: "${{ fromJson(needs.host.outputs.val).announcement_is_prerelease && '--prerelease' || '' }}"

dist-workspace.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ pr-run-mode = "plan"
4646
dispatch-releases = true
4747
# Which phase dist should use to create the GitHub release
4848
github-release = "announce"
49+
# Whether to enable GitHub Attestations
50+
github-attestations = true
51+
# When to generate GitHub Attestations
52+
github-attestations-phase = "host"
53+
# Patterns to attest when creating attestations for release artifacts
54+
github-attestations-filters = ["*.json", "*.sh", "*.ps1", "*.zip", "*.tar.gz"]
4955
# Whether CI should include auto-generated code to build local artifacts
5056
build-local-artifacts = false
5157
# Local artifacts jobs to run in CI

0 commit comments

Comments
 (0)