Skip to content

Commit

Permalink
Add initial support for build attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed May 28, 2024
1 parent 8c38de1 commit 7023040
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
environment: build
runs-on: ${{ matrix.os }}

permissions:
attestations: write
id-token: write

steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down Expand Up @@ -356,6 +360,11 @@ jobs:
}
}
- name: Generate artifact attestation for ASF-${{ matrix.variant }}.zip
uses: actions/[email protected]
with:
subject-path: out/ASF-${{ matrix.variant }}.zip

- name: Upload ASF-${{ matrix.variant }}
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -397,6 +406,12 @@ jobs:
fi
done
- name: Generate artifact attestation for ArchiSteamFarm.OfficialPlugins.Monitoring
if: ${{ matrix.os == 'ubuntu-latest' && matrix.variant == 'generic' }}
uses: actions/[email protected]
with:
subject-path: out/ArchiSteamFarm.OfficialPlugins.Monitoring.zip

- name: Upload ArchiSteamFarm.OfficialPlugins.Monitoring
if: ${{ matrix.os == 'ubuntu-latest' && matrix.variant == 'generic' }}
uses: actions/[email protected]
Expand All @@ -412,7 +427,9 @@ jobs:
runs-on: ubuntu-latest

permissions:
attestations: write
contents: write
id-token: write

steps:
- name: Checkout code
Expand Down Expand Up @@ -488,13 +505,23 @@ jobs:
sha512sum *.zip > SHA512SUMS
gpg -a -b -o SHA512SUMS.sign SHA512SUMS
- name: Generate artifact attestation for SHA512SUMS
uses: actions/[email protected]
with:
subject-path: out/SHA512SUMS

- name: Upload SHA512SUMS
uses: actions/[email protected]
with:
if-no-files-found: error
name: SHA512SUMS
path: out/SHA512SUMS

- name: Generate artifact attestation for SHA512SUMS.sign
uses: actions/[email protected]
with:
subject-path: out/SHA512SUMS.sign

- name: Upload SHA512SUMS.sign
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 7023040

Please sign in to comment.