Skip to content

Commit 0774cfc

Browse files
Merge pull request #998 from github/michaelrfairhurst/fix-workflow-permissions
Add workflow permissions
2 parents 6c50c4c + a09ba97 commit 0774cfc

17 files changed

+45
-3
lines changed

.github/workflows/code-scanning-pack-gen.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Code Scanning Query Pack Generation
2+
permissions:
3+
contents: read
24

35
on:
46
merge_group:

.github/workflows/codeql_unit_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CodeQL Unit Testing
2+
permissions:
3+
contents: read
24

35
on:
46
merge_group:

.github/workflows/dispatch-matrix-test-on-comment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: 🤖 Run Matrix Check (On Comment)
2+
permissions:
3+
contents: read
4+
actions: write
5+
pull-requests: write
26

37
on:
48
issue_comment:

.github/workflows/dispatch-release-performance-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: 🏁 Run Release Performance Check
2+
permissions:
3+
contents: read
4+
actions: write
5+
pull-requests: write
26

37
on:
48
issue_comment:

.github/workflows/extra-rule-validation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: ⚙️ Extra Rule Validation
2+
permissions:
3+
contents: read
24

35
on:
46
merge_group:

.github/workflows/finalize-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: Finalize Release
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
actions: write
6+
27
on:
38
pull_request:
49
types:

.github/workflows/generate-html-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Generate HTML documentation
2+
permissions:
3+
contents: read
24

35
on:
46
merge_group:

.github/workflows/standard_library_upgrade_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CodeQL Standard Library Upgrade tests
2+
permissions:
3+
contents: read
24

35
# Run this workflow every time the "supported_codeql_configs.json" file is changed
46
on:

.github/workflows/tooling-unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: 🧰 Tooling unit tests
2+
permissions:
3+
contents: read
24

35
on:
46
merge_group:

.github/workflows/update-check-run.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Update check run
2+
permissions:
3+
contents: read
4+
checks: write
25

36
on:
47
workflow_dispatch:
@@ -37,9 +40,6 @@ on:
3740
type: string
3841
default: '{}'
3942

40-
permissions:
41-
checks: write
42-
4343
jobs:
4444
update-check-run:
4545
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)