-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set permissions to GITHUB_TOKEN (#2848)
* [StepSecurity] ci: Harden GitHub Actions Signed-off-by: Joyce Brum <joycebrum@google.com> * set release.yml permissions Signed-off-by: Joyce <joycebrum@google.com> * set backport.yml permissions Signed-off-by: Joyce <joycebrum@google.com> --------- Signed-off-by: Joyce Brum <joycebrum@google.com> Signed-off-by: Joyce <joycebrum@google.com>
- Loading branch information
Showing
6 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
- master | ||
- r* | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
flake8-test: | ||
name: Flake8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
types: [opened] | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
notify-codeowners: | ||
name: Notify codeowners | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ on: | |
- master | ||
- r* | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
MIN_PY_VERSION: '3.9' | ||
MAX_PY_VERSION: '3.11' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters