-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for build attestations
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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: | ||
|
@@ -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] | ||
|
@@ -412,7 +427,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
attestations: write | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -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: | ||
|