@@ -45,7 +45,7 @@ attest:
45
45
your SBOM has been generated :
46
46
47
47
` ` ` yaml
48
- - uses: actions/attest-sbom@v1
48
+ - uses: actions/attest-sbom@v2
49
49
with:
50
50
subject-path: '<PATH TO ARTIFACT>'
51
51
sbom-path: '<PATH TO SBOM>'
@@ -60,7 +60,7 @@ attest:
60
60
See [action.yml](action.yml)
61
61
62
62
` ` ` yaml
63
- - uses: actions/attest-sbom@v1
63
+ - uses: actions/attest-sbom@v2
64
64
with:
65
65
# Path to the artifact serving as the subject of the attestation. Must
66
66
# specify exactly one of "subject-path" or "subject-digest". May contain a
136
136
137
137
jobs:
138
138
build:
139
+ runs-on: ubuntu-latest
139
140
permissions:
140
141
id-token: write
141
142
contents: read
@@ -152,7 +153,7 @@ jobs:
152
153
format: 'spdx-json'
153
154
output-file: 'sbom.spdx.json'
154
155
- name: Attest
155
- uses: actions/attest-sbom@v1
156
+ uses: actions/attest-sbom@v2
156
157
with:
157
158
subject-path: '${{ github.workspace }}/my-app'
158
159
sbom-path: 'sbom.spdx.json'
@@ -164,7 +165,7 @@ If you are generating multiple artifacts, you can attest all of them at the same
164
165
time by using a wildcard in the `subject-path` input.
165
166
166
167
` ` ` yaml
167
- - uses: actions/attest-sbom@v1
168
+ - uses: actions/attest-sbom@v2
168
169
with:
169
170
subject-path: 'dist/**/my-bin-*'
170
171
sbom-path: '${{ github.workspace }}/my-bin.sbom.spdx.json'
@@ -177,13 +178,13 @@ Alternatively, you can explicitly list multiple subjects with either a comma or
177
178
newline delimited list :
178
179
179
180
` ` ` yaml
180
- - uses: actions/attest-sbom@v1
181
+ - uses: actions/attest-sbom@v2
181
182
with:
182
183
subject-path: 'dist/foo, dist/bar'
183
184
` ` `
184
185
185
186
` ` ` yaml
186
- - uses: actions/attest-sbom@v1
187
+ - uses: actions/attest-sbom@v2
187
188
with:
188
189
subject-path: |
189
190
dist/foo
@@ -246,7 +247,7 @@ jobs:
246
247
format: 'cyclonedx-json'
247
248
output-file: 'sbom.cyclonedx.json'
248
249
- name: Attest
249
- uses: actions/attest-sbom@v1
250
+ uses: actions/attest-sbom@v2
250
251
id: attest
251
252
with:
252
253
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
0 commit comments