Skip to content

Commit 9701984

Browse files
committed
build: explicitly set permissions for workflows
1 parent c4dbca4 commit 9701984

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
# Allow the workflow to be manually run:
3232
workflow_dispatch:
3333

34+
# Global permissions:
35+
permissions:
36+
# Allow read-only access to the repository contents:
37+
contents: read
38+
3439
# Workflow jobs:
3540
jobs:
3641

.github/workflows/process_metadata.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
issue_comment:
2828
types: [created, edited]
2929

30+
# Global permissions:
31+
permissions:
32+
# Allow read-only access to the repository contents:
33+
contents: read
34+
3035
# Workflow jobs:
3136
jobs:
3237

.github/workflows/scaffold_pkg_via_branch_push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
- 'scaffold/**'
2727
- 'scaffold-**/**'
2828

29+
# Global permissions:
30+
permissions:
31+
# Allow read-only access to the repository contents:
32+
contents: read
33+
2934
# Workflow jobs:
3035
jobs:
3136

.github/workflows/scaffold_pkg_via_issue_comment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
issue_comment:
2525
types: [created]
2626

27+
# Global permissions:
28+
permissions:
29+
# Allow read-only access to the repository contents:
30+
contents: read
31+
2732
# Workflow jobs:
2833
jobs:
2934
scaffold:

.github/workflows/scaffold_pkg_via_pull_request_assignment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
pull_request_target:
2525
types: [assigned]
2626

27+
# Global permissions:
28+
permissions:
29+
# Allow read-only access to the repository contents:
30+
contents: read
31+
2732
# Workflow jobs:
2833
jobs:
2934

.github/workflows/terminal.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ name: terminal
2323
on:
2424
workflow_dispatch:
2525

26+
# Global permissions:
27+
permissions:
28+
# Allow read-only access to the repository contents:
29+
contents: read
30+
2631
# Workflow jobs:
2732
jobs:
2833

0 commit comments

Comments
 (0)