You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-12-21 06:31:06 +02:00
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
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -1,4 +1,6 @@
|
|||||||
name: Test
|
name: Test
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|||||||
2
.github/workflows/check-msgid-changes.yml
vendored
2
.github/workflows/check-msgid-changes.yml
vendored
@@ -1,4 +1,6 @@
|
|||||||
name: Prevent unintended msgid changes
|
name: Prevent unintended msgid changes
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|||||||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -1,4 +1,6 @@
|
|||||||
name: Lint
|
name: Lint
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|||||||
Reference in New Issue
Block a user