Skip to content

Commit ed5f1c7

Browse files
committed
Generate artifact attestation
1 parent 81aea36 commit ed5f1c7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262

6363
runs-on: ubuntu-latest
6464

65+
permissions:
66+
id-token: write
67+
attestations: write
68+
6569
container:
6670
image: docker.io/library/debian
6771

@@ -119,6 +123,11 @@ jobs:
119123
run: |
120124
tar -czf dartsdk-android-${{ matrix.target-arch }}-release.tar.gz -C dart-sdk/sdk/out/Release* -- dart-sdk
121125
126+
- name: Generate artifact attestation
127+
uses: actions/attest-build-provenance@v2
128+
with:
129+
subject-path: dartsdk-android-${{ matrix.target-arch }}-release.tar.gz
130+
122131
- name: Upload Artifact
123132
uses: actions/upload-artifact@v4
124133
with:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
build:
10+
permissions:
11+
id-token: write
12+
attestations: write
1013
uses: ./.github/workflows/build.yml
1114
with:
1215
ref: ${{ github.ref_name }}

.github/workflows/schedule.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
stable:
5959
needs: [latest]
6060
if: needs.latest.outputs.stable-cache-hit != 'true'
61+
permissions:
62+
id-token: write
63+
attestations: write
6164
uses: ./.github/workflows/build.yml
6265
with:
6366
ref: ${{ needs.latest.outputs.stable-version }}
@@ -66,6 +69,9 @@ jobs:
6669
beta:
6770
needs: [latest]
6871
if: needs.latest.outputs.beta-cache-hit != 'true' && needs.latest.outputs.beta-version != needs.latest.outputs.stable-version
72+
permissions:
73+
id-token: write
74+
attestations: write
6975
uses: ./.github/workflows/build.yml
7076
with:
7177
ref: ${{ needs.latest.outputs.beta-version }}
@@ -74,13 +80,19 @@ jobs:
7480
dev:
7581
needs: [latest]
7682
if: needs.latest.outputs.dev-cache-hit != 'true' && needs.latest.outputs.dev-version != needs.latest.outputs.beta-version && needs.latest.outputs.dev-version != needs.latest.outputs.stable-version
83+
permissions:
84+
id-token: write
85+
attestations: write
7786
uses: ./.github/workflows/build.yml
7887
with:
7988
ref: ${{ needs.latest.outputs.dev-version }}
8089
secrets: inherit
8190

8291
edge:
8392
needs: [latest]
93+
permissions:
94+
id-token: write
95+
attestations: write
8496
uses: ./.github/workflows/build.yml
8597
with:
8698
ref: ${{ needs.latest.outputs.edge-version }}

0 commit comments

Comments
 (0)