Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/binary_provenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
trail_name:
required: true
type: string
secrets:
secrets:
kosli_api_token:
required: true

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Attest Build Provenance
id: artifact-gh-attest
uses: actions/attest-build-provenance@v4
uses: actions/attest@v4
with:
subject-name: ${{matrix.artifact.template_name}}
subject-digest: sha256:${{ env.FINGERPRINT }}
Expand All @@ -63,7 +63,7 @@ jobs:
run: |
TRANSPARENCY_LOG_INDEX=$(jq '.verificationMaterial.tlogEntries[0].logIndex' ${{ steps.artifact-gh-attest.outputs.bundle-path }})
echo "ARTIFACT_TLOG_INDEX=$TRANSPARENCY_LOG_INDEX" >> ${GITHUB_ENV}

- name: Generate SBOM for the binary
uses: anchore/sbom-action@v0
with:
Expand All @@ -80,16 +80,16 @@ jobs:
format: 'cyclonedx-json'
output-file: '${{matrix.artifact.template_name}}-sbom.cyclonedx.json'
upload-artifact: false
upload-release-assets: false
upload-release-assets: false

- name: Publish SBOM
uses: anchore/sbom-action/publish-sbom@v0
with:
sbom-artifact-match: ".*\\.spdx.json$"

- name: Attest SBOM to Github
id: sbom-gh-attest
uses: actions/attest-sbom@v4
uses: actions/attest@v4
with:
sbom-path: '${{matrix.artifact.template_name}}-sbom.spdx.json'
subject-name: ${{matrix.artifact.template_name}}
Expand All @@ -103,11 +103,11 @@ jobs:
- name: Report artifact to Kosli
env:
KOSLI_API_TOKEN: ${{ secrets.kosli_api_token }}
run:
run:
kosli attest artifact
${{matrix.artifact.path}}
--flow ${{ inputs.flow_name }}
--trail ${{ inputs.trail_name }}
--trail ${{ inputs.trail_name }}
--name ${{matrix.artifact.template_name}}
--fingerprint ${{ env.FINGERPRINT }}
--external-url sigstore=https://search.sigstore.dev/?hash=${{ env.FINGERPRINT }}
Expand All @@ -116,10 +116,10 @@ jobs:
- name: Report spdx SBOM attestation from sigstore to Kosli
env:
KOSLI_API_TOKEN: ${{ secrets.kosli_api_token }}
run:
run:
kosli attest generic
--flow ${{ inputs.flow_name }}
--trail ${{ inputs.trail_name }}
--trail ${{ inputs.trail_name }}
--name sbom
--fingerprint ${{ env.FINGERPRINT }}
--attachments ${{matrix.artifact.template_name}}-sbom.spdx.json
Expand All @@ -140,4 +140,4 @@ jobs:
--org ${{ inputs.kosli_org }}



4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:


- name: Attest Build Provenance
uses: actions/attest-build-provenance@v4
uses: actions/attest@v4
with:
subject-name: ${{ env.IMAGE }}
subject-digest: ${{ steps.docker_build.outputs.digest }}
Expand All @@ -125,7 +125,7 @@ jobs:


- name: Attest SBOM to Github
uses: actions/attest-sbom@v4
uses: actions/attest@v4
with:
sbom-path: 'sbom.spdx.json'
subject-name: ${{ env.IMAGE }}
Expand Down
Loading