Skip to content

Commit 4c4edcd

Browse files
committed
[ci] Fix missing permissions for prereleases
Missed these earlier.
1 parent 9fe2f15 commit 4c4edcd

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/runtime_prereleases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
publish_prerelease:
3030
name: Publish prelease (${{ inputs.release_channel }}) ${{ inputs.commit_sha }} @${{ inputs.dist_tag }}
3131
runs-on: ubuntu-latest
32+
permissions:
33+
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
34+
actions: read
3235
steps:
3336
- uses: actions/checkout@v4
3437
- uses: actions/setup-node@v4

.github/workflows/runtime_prereleases_manual.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
publish_prerelease_canary:
1717
name: Publish to Canary channel
1818
uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
19+
permissions:
20+
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
21+
actions: read
1922
with:
2023
commit_sha: ${{ inputs.prerelease_commit_sha }}
2124
release_channel: stable
@@ -36,6 +39,9 @@ jobs:
3639
publish_prerelease_experimental:
3740
name: Publish to Experimental channel
3841
uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
42+
permissions:
43+
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
44+
actions: read
3945
# NOTE: Intentionally running these jobs sequentially because npm
4046
# will sometimes fail if you try to concurrently publish two
4147
# different versions of the same package, even if they use different

.github/workflows/runtime_prereleases_nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
publish_prerelease_canary:
1515
name: Publish to Canary channel
1616
uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
17+
permissions:
18+
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
19+
actions: read
1720
with:
1821
commit_sha: ${{ github.sha }}
1922
release_channel: stable
@@ -24,6 +27,9 @@ jobs:
2427
publish_prerelease_experimental:
2528
name: Publish to Experimental channel
2629
uses: facebook/react/.github/workflows/runtime_prereleases.yml@main
30+
permissions:
31+
# We use github.token to download the build artifact from a previous runtime_build_and_test.yml run
32+
actions: read
2733
# NOTE: Intentionally running these jobs sequentially because npm
2834
# will sometimes fail if you try to concurrently publish two
2935
# different versions of the same package, even if they use different

0 commit comments

Comments
 (0)