mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
.github/workflows: enable GitHub artifact attestation
Closes #621 Co-authored-by: Helio Machado <0x2b3bfa0+git@googlemail.com>
This commit is contained in:
parent
b70af41215
commit
52338c20df
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -68,11 +68,13 @@ jobs:
|
|||
name: age-binaries-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
|
||||
path: age-*
|
||||
upload:
|
||||
name: Upload release binaries
|
||||
name: Upload and attest release binaries
|
||||
if: github.event_name == 'release'
|
||||
needs: build
|
||||
permissions:
|
||||
contents: write
|
||||
attestations: write
|
||||
id-token: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download workflow artifacts
|
||||
|
|
@ -80,6 +82,10 @@ jobs:
|
|||
with:
|
||||
pattern: age-binaries-*
|
||||
merge-multiple: true
|
||||
- name: Generate artifacts attestation
|
||||
uses: actions/attest-build-provenance@v3
|
||||
with:
|
||||
subject-path: age-*
|
||||
- name: Upload release artifacts
|
||||
run: gh release upload "$GITHUB_REF_NAME" age-*
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue