Skip to content

Commit c4fbc64

Browse files
authored
bump actions/attest from 2.0.0 to 2.0.1 (#406)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
1 parent 619dbb2 commit c4fbc64

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/prober.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
date > artifact
3030
3131
- name: Attest build provenance
32-
uses: actions/attest-build-provenance@v1
32+
uses: actions/attest-build-provenance@v2
3333
env:
3434
INPUT_PRIVATE-SIGNING: ${{ inputs.sigstore == 'github' && 'true' || 'false' }}
3535
with:

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ attest:
4545
1. Add the following to your workflow after your artifact has been built:
4646

4747
```yaml
48-
- uses: actions/attest-build-provenance@v1
48+
- uses: actions/attest-build-provenance@v2
4949
with:
5050
subject-path: '<PATH TO ARTIFACT>'
5151
```
@@ -58,7 +58,7 @@ attest:
5858
See [action.yml](action.yml)
5959

6060
```yaml
61-
- uses: actions/attest-build-provenance@v1
61+
- uses: actions/attest-build-provenance@v2
6262
with:
6363
# Path to the artifact serving as the subject of the attestation. Must
6464
# specify exactly one of "subject-path" or "subject-digest". May contain a
@@ -126,6 +126,7 @@ on:
126126
127127
jobs:
128128
build:
129+
runs-on: ubuntu-latest
129130
permissions:
130131
id-token: write
131132
contents: read
@@ -137,7 +138,7 @@ jobs:
137138
- name: Build artifact
138139
run: make my-app
139140
- name: Attest
140-
uses: actions/attest-build-provenance@v1
141+
uses: actions/attest-build-provenance@v2
141142
with:
142143
subject-path: '${{ github.workspace }}/my-app'
143144
```
@@ -148,7 +149,7 @@ If you are generating multiple artifacts, you can attest all of them at the same
148149
time by using a wildcard in the `subject-path` input.
149150

150151
```yaml
151-
- uses: actions/attest-build-provenance@v1
152+
- uses: actions/attest-build-provenance@v2
152153
with:
153154
subject-path: 'dist/**/my-bin-*'
154155
```
@@ -160,13 +161,13 @@ Alternatively, you can explicitly list multiple subjects with either a comma or
160161
newline delimited list:
161162

162163
```yaml
163-
- uses: actions/attest-build-provenance@v1
164+
- uses: actions/attest-build-provenance@v2
164165
with:
165166
subject-path: 'dist/foo, dist/bar'
166167
```
167168

168169
```yaml
169-
- uses: actions/attest-build-provenance@v1
170+
- uses: actions/attest-build-provenance@v2
170171
with:
171172
subject-path: |
172173
dist/foo
@@ -226,7 +227,7 @@ jobs:
226227
push: true
227228
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
228229
- name: Attest
229-
uses: actions/attest-build-provenance@v1
230+
uses: actions/attest-build-provenance@v2
230231
id: attest
231232
with:
232233
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ runs:
5252
steps:
5353
- uses: actions/attest-build-provenance/predicate@36fa7d009e22618ca7cd599486979b8150596c74 # predicate@1.1.4
5454
id: generate-build-provenance-predicate
55-
- uses: actions/attest@v2.0.0
55+
- uses: actions/attest@v2.0.1
5656
id: attest
5757
with:
5858
subject-path: ${{ inputs.subject-path }}

0 commit comments

Comments
 (0)