1717 trail_name :
1818 required : true
1919 type : string
20- secrets :
20+ secrets :
2121 kosli_api_token :
2222 required : true
2323
5454
5555 - name : Attest Build Provenance
5656 id : artifact-gh-attest
57- uses : actions/attest-build-provenance @v4
57+ uses : actions/attest@v4
5858 with :
5959 subject-name : ${{matrix.artifact.template_name}}
6060 subject-digest : sha256:${{ env.FINGERPRINT }}
6363 run : |
6464 TRANSPARENCY_LOG_INDEX=$(jq '.verificationMaterial.tlogEntries[0].logIndex' ${{ steps.artifact-gh-attest.outputs.bundle-path }})
6565 echo "ARTIFACT_TLOG_INDEX=$TRANSPARENCY_LOG_INDEX" >> ${GITHUB_ENV}
66-
66+
6767 - name : Generate SBOM for the binary
6868 uses : anchore/sbom-action@v0
6969 with :
@@ -80,16 +80,16 @@ jobs:
8080 format : ' cyclonedx-json'
8181 output-file : ' ${{matrix.artifact.template_name}}-sbom.cyclonedx.json'
8282 upload-artifact : false
83- upload-release-assets : false
84-
83+ upload-release-assets : false
84+
8585 - name : Publish SBOM
8686 uses : anchore/sbom-action/publish-sbom@v0
8787 with :
8888 sbom-artifact-match : " .*\\ .spdx.json$"
89-
89+
9090 - name : Attest SBOM to Github
9191 id : sbom-gh-attest
92- uses : actions/attest-sbom @v4
92+ uses : actions/attest@v4
9393 with :
9494 sbom-path : ' ${{matrix.artifact.template_name}}-sbom.spdx.json'
9595 subject-name : ${{matrix.artifact.template_name}}
@@ -103,11 +103,11 @@ jobs:
103103 - name : Report artifact to Kosli
104104 env :
105105 KOSLI_API_TOKEN : ${{ secrets.kosli_api_token }}
106- run :
106+ run :
107107 kosli attest artifact
108108 ${{matrix.artifact.path}}
109109 --flow ${{ inputs.flow_name }}
110- --trail ${{ inputs.trail_name }}
110+ --trail ${{ inputs.trail_name }}
111111 --name ${{matrix.artifact.template_name}}
112112 --fingerprint ${{ env.FINGERPRINT }}
113113 --external-url sigstore=https://search.sigstore.dev/?hash=${{ env.FINGERPRINT }}
@@ -116,10 +116,10 @@ jobs:
116116 - name : Report spdx SBOM attestation from sigstore to Kosli
117117 env :
118118 KOSLI_API_TOKEN : ${{ secrets.kosli_api_token }}
119- run :
119+ run :
120120 kosli attest generic
121121 --flow ${{ inputs.flow_name }}
122- --trail ${{ inputs.trail_name }}
122+ --trail ${{ inputs.trail_name }}
123123 --name sbom
124124 --fingerprint ${{ env.FINGERPRINT }}
125125 --attachments ${{matrix.artifact.template_name}}-sbom.spdx.json
@@ -140,4 +140,4 @@ jobs:
140140 --org ${{ inputs.kosli_org }}
141141
142142
143-
143+
0 commit comments