Skip to content

Commit

Permalink
added attest-build-provenance in the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisoft committed Sep 9, 2024
1 parent 5c5fd9e commit 5fb38fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 5fb38fe

Please sign in to comment.