Skip to content

Commit cfb170a

Browse files
committed
find minimal required permissions
1 parent 753d166 commit cfb170a

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- kissat-each-feature
2626
if: ${{ always() }} # Run this job even if a dependency has failed.
2727
steps:
28+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2829
- name: Job outcomes
2930
run: |
3031
echo "🧪 Workspace tests: ${{ needs.tests.result }}"
@@ -59,6 +60,7 @@ jobs:
5960
name: 🏗️ Dev dependencies
6061
runs-on: [self-hosted, nix]
6162
steps:
63+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
6264
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6365
with:
6466
persist-credentials: false
@@ -71,6 +73,7 @@ jobs:
7173
- dev-deps
7274
if: '!github.event.pull_request.draft'
7375
steps:
76+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
7477
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7578
with:
7679
persist-credentials: false
@@ -87,6 +90,7 @@ jobs:
8790
runs-on: [self-hosted, nix]
8891
if: '!github.event.pull_request.draft'
8992
steps:
93+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
9094
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9195
with:
9296
persist-credentials: false
@@ -97,6 +101,7 @@ jobs:
97101
runs-on: [self-hosted, nix]
98102
if: '!github.event.pull_request.draft'
99103
steps:
104+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
100105
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
101106
with:
102107
persist-credentials: false
@@ -108,6 +113,7 @@ jobs:
108113
needs:
109114
- dev-deps
110115
steps:
116+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
111117
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
112118
with:
113119
persist-credentials: false
@@ -134,6 +140,7 @@ jobs:
134140
runs-on: [self-hosted, nix]
135141
if: '!github.event.pull_request.draft'
136142
steps:
143+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
137144
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
138145
with:
139146
persist-credentials: false
@@ -149,6 +156,7 @@ jobs:
149156
- dev-deps
150157
if: '!github.event.pull_request.draft'
151158
steps:
159+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
152160
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
153161
with:
154162
persist-credentials: false
@@ -166,6 +174,7 @@ jobs:
166174
- tests
167175
- doc
168176
steps:
177+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
169178
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
170179
with:
171180
persist-credentials: false
@@ -187,6 +196,7 @@ jobs:
187196
- dev-deps
188197
if: "!github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'heavy-tests')"
189198
steps:
199+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
190200
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
191201
with:
192202
persist-credentials: false
@@ -199,6 +209,7 @@ jobs:
199209
- dev-deps
200210
if: "!github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'solvers/cadical')"
201211
steps:
212+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
202213
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
203214
with:
204215
persist-credentials: false
@@ -211,6 +222,7 @@ jobs:
211222
- dev-deps
212223
if: "!github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'solvers/kissat')"
213224
steps:
225+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
214226
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
215227
with:
216228
persist-credentials: false

.github/workflows/non-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
name: 🧪 MacOS workspace tests
1515
runs-on: macos-latest
1616
steps:
17+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1718
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1819
with:
1920
persist-credentials: false
@@ -25,6 +26,7 @@ jobs:
2526
name: 🧪 Windows workspace tests
2627
runs-on: windows-latest
2728
steps:
29+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2830
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2931
with:
3032
persist-credentials: false
@@ -39,6 +41,7 @@ jobs:
3941
os: [macos-latest, windows-latest]
4042
runs-on: ${{ matrix.os }}
4143
steps:
44+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4245
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4346
with:
4447
persist-credentials: false

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
build:
1818
runs-on: [self-hosted, nix]
1919
steps:
20+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2021
- name: Checkout
2122
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2223
with:
@@ -35,6 +36,7 @@ jobs:
3536
runs-on: ubuntu-latest
3637
needs: build
3738
steps:
39+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3840
- name: 🫙 Deploy to GitHub Pages
3941
id: deployment
4042
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5

.github/workflows/semver-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
name: 🛡️ Semver checks
1111
runs-on: [self-hosted, nix]
1212
steps:
13+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1314
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1415
with:
1516
persist-credentials: false

0 commit comments

Comments
 (0)