Skip to content

Commit c7846a5

Browse files
authored
Fixes invalid yaml in nightly job (#971)
The nightly job didn't set any permissions, so the release job in release-common inherits default read permissions.
1 parent d1096c5 commit c7846a5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
release-common:
5454
needs: changes
5555
if: ${{ needs.changes.outputs.proceed == 'true' }}
56+
permissions:
57+
contents: write
5658
uses: ./.github/workflows/release-common.yml
5759
with:
5860
branch: primary

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
2121
release-common:
2222
needs: validate
23+
permissions:
24+
contents: write
2325
uses: ./.github/workflows/release-common.yml
2426
with:
2527
branch: ${{ github.ref_name }}

0 commit comments

Comments
 (0)