Skip to content

Commit e8246d6

Browse files
committed
add checksum + provenance
1 parent 2ad02f5 commit e8246d6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,23 @@ jobs:
177177
run: |
178178
zip -r github-act-runner-full-src.zip . -x ".git/*" github-act-runner-full-src.zip github-act-runner-full-src.tar.gz
179179
tar --exclude=.git --exclude=github-act-runner-full-src.zip --exclude=github-act-runner-full-src.tar.gz -czf github-act-runner-full-src.tar.gz .
180+
- name: Create Signed Provenance
181+
uses: actions/attest-build-provenance@v1
182+
id: attest
183+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip-packaging != 'true' }}
184+
with:
185+
subject-path: "github-act-runner-full-src.*"
186+
- name: Copy Signed Provenance to well known filepath
187+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip-packaging != 'true' }}
188+
run: |
189+
cp "$BUNDLE_PATH" github-act-runner-full-src.sigstore.json
190+
env:
191+
BUNDLE_PATH: ${{ steps.attest.outputs.bundle-path }}
192+
- name: Create Package Checksums
193+
if: ${{ github.event.inputs.skip-packaging != 'true' }}
194+
run: |
195+
sha512sum github-act-runner-full-src.zip > github-act-runner-full-src.zip.sha512
196+
sha512sum github-act-runner-full-src.tar.gz > github-act-runner-full-src.tar.gz.sha512
180197
- uses: actions/upload-artifact@v4
181198
with:
182199
name: vendor

0 commit comments

Comments
 (0)