Skip to content

Commit 294a1b0

Browse files
committed
Add permissions to actions
1 parent 5a89fe5 commit 294a1b0

7 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/auto-comment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Auto Comment
22

33
on: [issues, pull_request]
44

5+
permissions:
6+
issues: write
7+
pull-requests: write
8+
59
jobs:
610
run:
711
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
# required to fetch internal or private CodeQL packs
2020
packages: read
2121

22+
# required for commenting on pull requests
23+
pull-requests: write
24+
2225
# only required for workflows in private repositories
2326
actions: read
2427
contents: read

.github/workflows/docker-latest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
buildx:
1013
runs-on: ubuntu-latest

.github/workflows/docker-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
buildx:
912
runs-on: ubuntu-latest

.github/workflows/docker-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches: [ master ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
buildx:
912
runs-on: ubuntu-latest

.github/workflows/mobsf-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
MOBSF_DISABLE_AUTHENTICATION: "1"
1114

.github/workflows/python-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
deploy:
912

0 commit comments

Comments
 (0)