Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
ci: testing: build: Use artifact attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxjohnny authored May 6, 2024
1 parent 5de108b commit 2c8b436
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,6 +62,19 @@ jobs:
python-version: ${{ matrix.python-version }}
module-name: dffml
output-directory: sbom
- name: Get built filenames
id: filename
run: |
echo "tar=$(cd dist/ && echo *.tar.gz)" >> $GITHUB_OUTPUT
echo "whl=$(cd dist/ && echo *.tar.gz)" >> $GITHUB_OUTPUT
- name: Attest Build Provenance
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
with:
subject-path: "dist/${{ steps.filename.outputs.tar }}"
- name: Attest Build Provenance
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
with:
subject-path: "dist/${{ steps.filename.outputs.whl }}"
- name: in-toto attestation for cyclonedx SBOM
id: in-toto-cyclonedx
env:
Expand Down

0 comments on commit 2c8b436

Please sign in to comment.