Skip to content

Commit ce2ac1e

Browse files
Fo3N0Th1ngronf
authored andcommitted
following the principle of least privileg in workflow
1 parent 7aa030c commit ce2ac1e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/run_tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: Run tests
22
on: [push, pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
run-tests:
69
name: Run tests
10+
permissions:
11+
contents: read
12+
actions: write
713
strategy:
814
fail-fast: false
915
matrix:
@@ -124,6 +130,8 @@ jobs:
124130
runs-on: ubuntu-latest
125131
needs: run-tests
126132
if: ${{ always() }}
133+
permissions:
134+
actions: write
127135
steps:
128136
- name: Merge coverage
129137
uses: actions/upload-artifact/merge@v4
@@ -137,6 +145,9 @@ jobs:
137145
runs-on: ubuntu-latest
138146
needs: merge-coverage
139147
if: ${{ always() }}
148+
permissions:
149+
contents: read
150+
actions: read
140151
steps:
141152
- uses: actions/checkout@v4
142153
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)