@@ -45,7 +45,7 @@ attest:
45
45
1. Add the following to your workflow after your artifact has been built :
46
46
47
47
` ` ` yaml
48
- - uses: actions/attest-build-provenance@v1
48
+ - uses: actions/attest-build-provenance@v2
49
49
with:
50
50
subject-path: '<PATH TO ARTIFACT>'
51
51
` ` `
@@ -58,7 +58,7 @@ attest:
58
58
See [action.yml](action.yml)
59
59
60
60
` ` ` yaml
61
- - uses: actions/attest-build-provenance@v1
61
+ - uses: actions/attest-build-provenance@v2
62
62
with:
63
63
# Path to the artifact serving as the subject of the attestation. Must
64
64
# specify exactly one of "subject-path" or "subject-digest". May contain a
126
126
127
127
jobs:
128
128
build:
129
+ runs-on: ubuntu-latest
129
130
permissions:
130
131
id-token: write
131
132
contents: read
@@ -137,7 +138,7 @@ jobs:
137
138
- name: Build artifact
138
139
run: make my-app
139
140
- name: Attest
140
- uses: actions/attest-build-provenance@v1
141
+ uses: actions/attest-build-provenance@v2
141
142
with:
142
143
subject-path: '${{ github.workspace }}/my-app'
143
144
` ` `
@@ -148,7 +149,7 @@ If you are generating multiple artifacts, you can attest all of them at the same
148
149
time by using a wildcard in the `subject-path` input.
149
150
150
151
` ` ` yaml
151
- - uses: actions/attest-build-provenance@v1
152
+ - uses: actions/attest-build-provenance@v2
152
153
with:
153
154
subject-path: 'dist/**/my-bin-*'
154
155
` ` `
@@ -160,13 +161,13 @@ Alternatively, you can explicitly list multiple subjects with either a comma or
160
161
newline delimited list :
161
162
162
163
` ` ` yaml
163
- - uses: actions/attest-build-provenance@v1
164
+ - uses: actions/attest-build-provenance@v2
164
165
with:
165
166
subject-path: 'dist/foo, dist/bar'
166
167
` ` `
167
168
168
169
` ` ` yaml
169
- - uses: actions/attest-build-provenance@v1
170
+ - uses: actions/attest-build-provenance@v2
170
171
with:
171
172
subject-path: |
172
173
dist/foo
@@ -226,7 +227,7 @@ jobs:
226
227
push: true
227
228
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
228
229
- name: Attest
229
- uses: actions/attest-build-provenance@v1
230
+ uses: actions/attest-build-provenance@v2
230
231
id: attest
231
232
with:
232
233
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
0 commit comments