Skip to content

Commit 1ab2eda

Browse files
committed
Update build.yml
1 parent f03db63 commit 1ab2eda

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
gh attestation verify dartsdk-linux-${{ matrix.host-arch }}-release.tar.gz --repo ${{ github.repository }} --signer-workflow ${{ github.repository }}/.github/workflows/build.yml@refs/tags/${{ steps.version.outputs.version }} || true
6868
rm -rf dart-sdk/sdk/tools/sdks/dart-sdk
6969
tar -xzf dartsdk-linux-${{ matrix.host-arch }}-release.tar.gz -C dart-sdk/sdk/tools/sdks
70+
else
71+
gh workflow run build.yml --repo ${{ github.repository }} --raw-field ref=${{ steps.version.outputs.version }}
7072
fi
7173
env:
7274
GH_TOKEN: ${{ github.token }}
@@ -97,8 +99,9 @@ jobs:
9799
runs-on: ubuntu-latest
98100

99101
permissions:
100-
id-token: write
102+
actions: write
101103
attestations: write
104+
id-token: write
102105

103106
container:
104107
image: docker.io/library/alpine

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
jobs:
99
build:
1010
permissions:
11-
id-token: write
11+
actions: write
1212
attestations: write
13+
id-token: write
1314
uses: ./.github/workflows/build.yml
1415
with:
1516
ref: ${{ github.ref_name }}

.github/workflows/schedule.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ jobs:
5959
needs: [latest]
6060
if: needs.latest.outputs.stable-cache-hit != 'true'
6161
permissions:
62-
id-token: write
62+
actions: write
6363
attestations: write
64+
id-token: write
6465
uses: ./.github/workflows/build.yml
6566
with:
6667
ref: ${{ needs.latest.outputs.stable-version }}
@@ -70,8 +71,9 @@ jobs:
7071
needs: [latest]
7172
if: needs.latest.outputs.beta-cache-hit != 'true' && needs.latest.outputs.beta-version != needs.latest.outputs.stable-version
7273
permissions:
73-
id-token: write
74+
actions: write
7475
attestations: write
76+
id-token: write
7577
uses: ./.github/workflows/build.yml
7678
with:
7779
ref: ${{ needs.latest.outputs.beta-version }}
@@ -81,8 +83,9 @@ jobs:
8183
needs: [latest]
8284
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
8385
permissions:
84-
id-token: write
86+
actions: write
8587
attestations: write
88+
id-token: write
8689
uses: ./.github/workflows/build.yml
8790
with:
8891
ref: ${{ needs.latest.outputs.dev-version }}
@@ -91,8 +94,9 @@ jobs:
9194
edge:
9295
needs: [latest]
9396
permissions:
94-
id-token: write
97+
actions: write
9598
attestations: write
99+
id-token: write
96100
uses: ./.github/workflows/build.yml
97101
with:
98102
ref: ${{ needs.latest.outputs.edge-version }}

0 commit comments

Comments
 (0)