Skip to content

Commit ec49a8f

Browse files
authored
Add workflow permissions (#282)
1 parent 2062999 commit ec49a8f

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.github/workflows/ci_branch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
type: boolean
1717
required: false
1818

19+
permissions:
20+
contents: write
21+
packages: write
22+
1923
jobs:
2024
build-test-publish:
2125
name: "Build, test, publish"

.github/workflows/ci_common.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ on:
5050
description: ""
5151
required: true
5252

53+
permissions:
54+
contents: write
55+
packages: write
56+
5357
jobs:
5458
build: # run build using the github action!
5559
runs-on: ubuntu-latest

.github/workflows/ci_main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: write
12+
packages: write
13+
1014
jobs:
1115
build-test-publish:
1216
name: "Build, test, publish"

.github/workflows/pr-bot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment
1010
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment
1111

12-
12+
permissions:
13+
contents: write
14+
packages: write
1315

1416
jobs:
1517
pr_comment:

.github/workflows/pr_auto.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- README.md
1111
- 'docs/**'
1212

13+
permissions:
14+
contents: write
15+
packages: write
16+
1317
jobs:
1418
build-test:
1519
name: "Build, test, publish"

0 commit comments

Comments
 (0)