Skip to content

Commit 5fb38fe

Browse files
committed
added attest-build-provenance in the ci
1 parent 5c5fd9e commit 5fb38fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ jobs:
169169
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
170170
needs: publish
171171
runs-on: ubuntu-latest
172+
permissions:
173+
id-token: write
174+
attestations: write
172175

173176
steps:
174177
- name: Checkout code
@@ -183,6 +186,16 @@ jobs:
183186
name: windows-latest_${{ env.PLUGIN_NAME }}-generic
184187
path: out
185188

189+
- name: Unzip and copy generic artifact
190+
run: |
191+
mkdir -p attest_provenance
192+
unzip out/${{ env.PLUGIN_NAME }}-generic.zip -d attest_provenance
193+
cp --archive out/${{ env.PLUGIN_NAME }}-generic.zip attest_provenance
194+
195+
- uses: actions/attest-build-provenance@v1
196+
with:
197+
subject-path: 'attest_provenance/*'
198+
186199
- name: Create GitHub release
187200
id: github_release
188201
uses: actions/create-release@v1.1.4

0 commit comments

Comments
 (0)