Skip to content

Commit

Permalink
feat: enable GitHub attestations in release workflow and dist configu…
Browse files Browse the repository at this point in the history
…ration

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 28, 2024
1 parent f9b9ab6 commit b2faeb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

name: Release
permissions:
"attestations": "write"
"contents": "write"
"id-token": "write"

# This task will run whenever you push a git tag that looks like a version
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
Expand Down Expand Up @@ -138,6 +140,10 @@ jobs:
# Actually do builds and make zips and whatnot
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "dist ran successfully"
- name: Attest
uses: actions/attest-build-provenance@v1
with:
subject-path: "target/distrib/*${{ join(matrix.targets, ', ') }}*"
- id: cargo-dist
name: Post-build
# We force bash here just because github makes it really hard to get values up
Expand Down
2 changes: 2 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ members = ["cargo:."]
[dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.25.1"
# Whether to enable GitHub Attestations
github-attestations = true
# CI backends to support
ci = "github"
# The installers to generate for each app
Expand Down

0 comments on commit b2faeb5

Please sign in to comment.