Skip to content

Commit 525ebd3

Browse files
authored
Set permissions on workflows (#42)
1 parent 2f48f3b commit 525ebd3

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/draft-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ on:
1111
ACTIONS_BOT_TOKEN:
1212
required: true
1313

14+
permissions:
15+
contents: 'read'
16+
pull-requests: 'write'
17+
18+
defaults:
19+
run:
20+
shell: 'bash'
21+
1422
jobs:
1523
draft-release:
1624
name: 'Draft Release'

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ permissions:
1919
contents: 'read'
2020
statuses: 'write'
2121

22+
defaults:
23+
run:
24+
shell: 'bash'
25+
2226
jobs:
2327
init:
2428
name: 'Lint (Initialize)'
@@ -41,7 +45,6 @@ jobs:
4145
env:
4246
REF: '${{ github.event.pull_request.head.sha }}'
4347
LC_ALL: 'C'
44-
shell: 'bash'
4548
run: |-
4649
set -euo pipefail
4750

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ on:
66
ACTIONS_BOT_TOKEN:
77
required: true
88

9+
permissions:
10+
attestations: 'write'
11+
contents: 'write'
12+
packages: 'write'
13+
14+
defaults:
15+
run:
16+
shell: 'bash'
17+
918
jobs:
1019
create-release:
1120
if: |-

0 commit comments

Comments
 (0)