generated from JustArchiNET/ASF-PluginTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added attest-build-provenance in the ci
- Loading branch information
Showing
1 changed file
with
13 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 |
---|---|---|
|
@@ -169,6 +169,9 @@ jobs: | |
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
attestations: write | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -183,6 +186,16 @@ jobs: | |
name: windows-latest_${{ env.PLUGIN_NAME }}-generic | ||
path: out | ||
|
||
- name: Unzip and copy generic artifact | ||
run: | | ||
mkdir -p attest_provenance | ||
unzip out/${{ env.PLUGIN_NAME }}-generic.zip -d attest_provenance | ||
cp --archive out/${{ env.PLUGIN_NAME }}-generic.zip attest_provenance | ||
- uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-path: 'attest_provenance/*' | ||
|
||
- name: Create GitHub release | ||
id: github_release | ||
uses: actions/[email protected] | ||
|