Skip to content

Commit db8cddc

Browse files
authored
chore: move away from deprecated attest action (#740)
1 parent 05301e6 commit db8cddc

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/binary_provenance.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
trail_name:
1818
required: true
1919
type: string
20-
secrets:
20+
secrets:
2121
kosli_api_token:
2222
required: true
2323

@@ -54,7 +54,7 @@ jobs:
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 }}
@@ -63,7 +63,7 @@ jobs:
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+

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
110110
111111
- name: Attest Build Provenance
112-
uses: actions/attest-build-provenance@v4
112+
uses: actions/attest@v4
113113
with:
114114
subject-name: ${{ env.IMAGE }}
115115
subject-digest: ${{ steps.docker_build.outputs.digest }}
@@ -125,7 +125,7 @@ jobs:
125125

126126

127127
- name: Attest SBOM to Github
128-
uses: actions/attest-sbom@v4
128+
uses: actions/attest@v4
129129
with:
130130
sbom-path: 'sbom.spdx.json'
131131
subject-name: ${{ env.IMAGE }}

0 commit comments

Comments
 (0)