Skip to content

Commit a0143f3

Browse files
committed
chore(gh): limit permissions of gh actions
1 parent f6ca5c3 commit a0143f3

10 files changed

+32
-8
lines changed

.github/workflows/gh-issue-comment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Update issue comment
33
on:
44
issue_comment:
55

6+
permissions:
7+
issues: write
8+
69
jobs:
710
when_user_comments_remove_label_waiting_for_feedback:
811
runs-on: ubuntu-latest

.github/workflows/gh-issues.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Update issue
33
on:
44
issues:
55

6+
permissions:
7+
issues: write
8+
69
jobs:
710
comment_when_issue_labeled_staged_for_release:
811
runs-on: ubuntu-latest

.github/workflows/owasp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
- cron: "48 9 * * 4"
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
actions: read
10+
security-events: write
11+
712
concurrency:
813
group: ${{ github.workflow }}-${{ github.ref }}
914
cancel-in-progress: true

.github/workflows/springwolf-addons.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types: [ opened, synchronize, ready_for_review ]
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
checks: write
14+
1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref }}
1317
cancel-in-progress: true

.github/workflows/springwolf-asyncapi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types: [ opened, synchronize, ready_for_review ]
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
checks: write
14+
1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref }}
1317
cancel-in-progress: true

.github/workflows/springwolf-bindings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types: [ opened, synchronize, ready_for_review ]
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
checks: write
14+
1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref }}
1317
cancel-in-progress: true

.github/workflows/springwolf-core.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ on:
88
types: [ opened, synchronize, ready_for_review ]
99
workflow_dispatch:
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
1511
permissions:
1612
contents: read
1713
checks: write
18-
id-token: write
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1918

2019
jobs:
2120
build:

.github/workflows/springwolf-plugins.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
permissions:
1212
contents: read
1313
checks: write
14-
id-token: write
1514

1615
concurrency:
1716
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/springwolf-ui.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ on:
99
workflow_dispatch:
1010

1111
permissions:
12-
contents: write
12+
contents: read
1313
checks: write
14-
id-token: write
1514

1615
concurrency:
1716
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/welcome-first-time-contrib.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
types:
1111
- opened
1212

13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
1317
jobs:
1418
welcome:
1519
name: Post welcome message

0 commit comments

Comments
 (0)