Skip to content

Commit 26683e9

Browse files
authored
chore: GitHub Workflows security hardening (#2740)
* build: harden tests.yml permissions Signed-off-by: Alex <[email protected]> * build: harden release-please.yml permissions Signed-off-by: Alex <[email protected]> * build: harden visual-studio.yml permissions Signed-off-by: Alex <[email protected]> * Update release-please.yml --------- Signed-off-by: Alex <[email protected]>
1 parent 91fd8ff commit 26683e9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
release-please:
10+
permissions:
11+
contents: write # to create release commit (google-github-actions/release-please-action)
12+
pull-requests: write # to create release PR (google-github-actions/release-please-action)
13+
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: google-github-actions/release-please-action@v2

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ main ]
88
pull_request:
99
branches: [ main ]
10+
11+
permissions:
12+
contents: read # to fetch code (actions/checkout)
13+
1014
jobs:
1115
Lint_Python:
1216
runs-on: ubuntu-latest

.github/workflows/visual-studio.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches: [ main ]
77
pull_request:
88
branches: [ main ]
9+
10+
permissions:
11+
contents: read # to fetch code (actions/checkout)
12+
913
jobs:
1014
visual-studio:
1115
strategy:

0 commit comments

Comments
 (0)