Skip to content

Commit a5e6897

Browse files
Reduce permissions for Github actions by reducing to minimal permissions (#2961)
This is increasing the security of this repository. A standard GITHUB_TOKEN currently has these permissions. GITHUB_TOKEN Permissions Contents: read Metadata: read Packages: read Setting only `contents: read` permission has the effect of removing Packages permission. Metadata is added automatically. fixes #2958
1 parent c3f92dd commit a5e6897

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/build.yml

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

35
on:
46
pull_request:

.github/workflows/check-msgid-changes.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Prevent unintended msgid changes
2+
permissions:
3+
contents: read
24

35
on:
46
pull_request:

.github/workflows/lint.yml

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

35
on:
46
pull_request:

0 commit comments

Comments
 (0)