Skip to content

Commit

Permalink
build: add gh attestation
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Langton <[email protected]>
  • Loading branch information
chrisdlangton committed Jun 6, 2024
1 parent af44bf2 commit 405125b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ on:
pull_request:
branches:
- '*'

permissions:
id-token: write
contents: read
attestations: write


jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -129,3 +136,14 @@ jobs:
asset_path: ./dist/ssvc-${{ env.APP_VERSION }}-py3-none-any.whl
asset_name: ssvc-${{ env.APP_VERSION }}-py3-none-any.whl
asset_content_type: application/octet-stream

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./dist/ssvc-${{ env.APP_VERSION }}-py3-none-any.whl

- name: Generate SBOM attestation
uses: actions/attest-sbom@v1
with:
subject-path: ./dist/ssvc-${{ env.APP_VERSION }}-py3-none-any.whl
sbom-path: ./sbom.json

0 comments on commit 405125b

Please sign in to comment.