Skip to content

Commit 22e78b0

Browse files
authored
Revert and re-add permissions (#135)
Apparently CodeQL is unhappy
1 parent b7448ba commit 22e78b0

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/draft-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
jobs:
1717
draft-release:
1818
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude
19+
permissions:
20+
contents: 'read'
21+
pull-requests: 'write'
1922
with:
2023
version_strategy: '${{ github.event.inputs.version_strategy }}'
2124
secrets:

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ on:
66
- 'main'
77
- 'release/**/*'
88

9+
defaults:
10+
run:
11+
shell: 'bash'
12+
913
jobs:
1014
release:
1115
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude
1216
secrets:
1317
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'
18+
permissions:
19+
attestations: 'write'
20+
contents: 'write'
21+
packages: 'write'
1422

1523
publish:
1624
needs:

0 commit comments

Comments
 (0)