Skip to content

Commit d2f018a

Browse files
authored
Merge pull request #19 from stacklok/update_att_upstream
Bump GH attestations and fix permissions
2 parents f62f0da + c303b0b commit d2f018a

6 files changed

+16
-8
lines changed

.github/workflows/build-binary-signed-ghat-malicious.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
13+
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Check out code
@@ -25,7 +27,7 @@ jobs:
2527
# ...
2628
#
2729
# - name: Sign artifact
28-
# uses: actions/attest-build-provenance@v1.0.0
30+
# uses: actions/attest-build-provenance@v1.4.1
2931
# with:
3032
# subject-path: '${{ github.workspace }}/demo-repo-go-binary'
3133
#

.github/workflows/build-binary-signed-ghat.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
13+
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Check out code
@@ -21,7 +23,7 @@ jobs:
2123
# ...
2224
#
2325
# - name: Sign artifact
24-
# uses: actions/attest-build-provenance@v1.0.0
26+
# uses: actions/attest-build-provenance@v1.4.1
2527
# with:
2628
# subject-path: '${{ github.workspace }}/demo-repo-go-binary'
2729
#

.github/workflows/build-image-signed-ghat-malicious.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
1213

1314
steps:
1415
- name: Checkout repository
@@ -34,8 +35,8 @@ jobs:
3435
context: .
3536

3637
- name: Attest image
37-
uses: actions/attest-build-provenance@v1.0.0
38+
uses: actions/attest-build-provenance@v1.4.1
3839
with:
3940
subject-name: ghcr.io/${{ github.repository }}
4041
subject-digest: ${{ steps.push-step.outputs.digest }}
41-
push-to-registry: true
42+
push-to-registry: true

.github/workflows/build-image-signed-ghat-static-copied.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
1213

1314
steps:
1415
- name: Checkout repository
@@ -31,7 +32,7 @@ jobs:
3132
file : Dockerfile.static
3233

3334
- name: Attest image
34-
uses: actions/attest-build-provenance@v1.0.0
35+
uses: actions/attest-build-provenance@v1.4.1
3536
with:
3637
subject-name: ghcr.io/${{ github.repository }}
3738
subject-digest: ${{ steps.push-step.outputs.digest }}

.github/workflows/build-image-signed-ghat-static.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
1213

1314
steps:
1415
- name: Checkout repository
@@ -31,7 +32,7 @@ jobs:
3132
file : Dockerfile.static
3233

3334
- name: Attest image
34-
uses: actions/attest-build-provenance@v1.0.0
35+
uses: actions/attest-build-provenance@v1.4.1
3536
with:
3637
subject-name: ghcr.io/${{ github.repository }}
3738
subject-digest: ${{ steps.push-step.outputs.digest }}

.github/workflows/build-image-signed-ghat.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
id-token: write
1010
packages: write
1111
contents: write
12+
attestations: write
1213

1314
steps:
1415
- name: Checkout repository
@@ -30,8 +31,8 @@ jobs:
3031
context: .
3132

3233
- name: Attest image
33-
uses: actions/attest-build-provenance@v1.0.0
34+
uses: actions/attest-build-provenance@v1.4.1
3435
with:
3536
subject-name: ghcr.io/${{ github.repository }}
3637
subject-digest: ${{ steps.push-step.outputs.digest }}
37-
push-to-registry: true
38+
push-to-registry: true

0 commit comments

Comments
 (0)