|
17 | 17 | tags: |
18 | 18 | - "v*.*.*" |
19 | 19 |
|
| 20 | +permissions: {} |
20 | 21 | jobs: |
21 | 22 |
|
22 | 23 | build_scancode_for_pypi: |
| 24 | + permissions: |
| 25 | + contents: read # to fetch code (actions/checkout) |
| 26 | + |
23 | 27 | name: Build PyPI archives |
24 | 28 | runs-on: ubuntu-20.04 |
25 | 29 |
|
|
67 | 71 |
|
68 | 72 |
|
69 | 73 | build_scancode_for_release_linux: |
| 74 | + permissions: |
| 75 | + contents: read # to fetch code (actions/checkout) |
| 76 | + |
70 | 77 | name: Build Release for linux |
71 | 78 | runs-on: ubuntu-20.04 |
72 | 79 | needs: |
@@ -106,6 +113,9 @@ jobs: |
106 | 113 |
|
107 | 114 |
|
108 | 115 | build_scancode_for_release_macos: |
| 116 | + permissions: |
| 117 | + contents: read # to fetch code (actions/checkout) |
| 118 | + |
109 | 119 | name: Build Release for mac |
110 | 120 | runs-on: ubuntu-20.04 |
111 | 121 | needs: |
@@ -145,6 +155,9 @@ jobs: |
145 | 155 |
|
146 | 156 |
|
147 | 157 | build_scancode_for_release_windows: |
| 158 | + permissions: |
| 159 | + contents: read # to fetch code (actions/checkout) |
| 160 | + |
148 | 161 | name: Build Release for windows |
149 | 162 | runs-on: ubuntu-20.04 |
150 | 163 | needs: |
@@ -183,6 +196,9 @@ jobs: |
183 | 196 |
|
184 | 197 |
|
185 | 198 | build_scancode_for_release_source: |
| 199 | + permissions: |
| 200 | + contents: read # to fetch code (actions/checkout) |
| 201 | + |
186 | 202 | name: Build source |
187 | 203 | runs-on: ubuntu-20.04 |
188 | 204 | needs: |
@@ -221,6 +237,9 @@ jobs: |
221 | 237 |
|
222 | 238 |
|
223 | 239 | smoke_test_install_and_run_pypi_dists_posix: |
| 240 | + permissions: |
| 241 | + contents: read # to fetch code (actions/checkout) |
| 242 | + |
224 | 243 | name: Test POSIX PyPI wheels |
225 | 244 | needs: |
226 | 245 | - build_scancode_for_pypi |
@@ -267,6 +286,9 @@ jobs: |
267 | 286 |
|
268 | 287 |
|
269 | 288 | smoke_test_install_and_run_pypi_dists_windows: |
| 289 | + permissions: |
| 290 | + contents: read # to fetch code (actions/checkout) |
| 291 | + |
270 | 292 | name: Test Windows PyPI wheels |
271 | 293 | needs: |
272 | 294 | - build_scancode_for_pypi |
@@ -312,6 +334,9 @@ jobs: |
312 | 334 |
|
313 | 335 |
|
314 | 336 | smoke_test_install_and_run_app_archives_on_linux: |
| 337 | + permissions: |
| 338 | + contents: read # to fetch code (actions/checkout) |
| 339 | + |
315 | 340 | name: Test app on ${{ matrix.os }} |
316 | 341 | needs: |
317 | 342 | - build_scancode_for_release_linux |
@@ -350,6 +375,9 @@ jobs: |
350 | 375 |
|
351 | 376 |
|
352 | 377 | smoke_test_install_and_run_app_archives_on_macos: |
| 378 | + permissions: |
| 379 | + contents: read # to fetch code (actions/checkout) |
| 380 | + |
353 | 381 | name: Test app on ${{ matrix.os }} |
354 | 382 | needs: |
355 | 383 | - build_scancode_for_release_macos |
@@ -388,6 +416,9 @@ jobs: |
388 | 416 |
|
389 | 417 |
|
390 | 418 | smoke_test_install_and_run_app_archives_on_windows: |
| 419 | + permissions: |
| 420 | + contents: read # to fetch code (actions/checkout) |
| 421 | + |
391 | 422 | name: Test app on ${{ matrix.os }} |
392 | 423 | needs: |
393 | 424 | - build_scancode_for_release_windows |
@@ -422,6 +453,9 @@ jobs: |
422 | 453 | for %%F in (dist/*.zip) do python etc/release/scancode_release_tests.py dist/%%F |
423 | 454 |
|
424 | 455 | publish_to_gh_release: |
| 456 | + permissions: |
| 457 | + contents: write # to create GitHub release (softprops/action-gh-release) |
| 458 | + |
425 | 459 | name: Publish to GH Release |
426 | 460 | needs: |
427 | 461 | - smoke_test_install_and_run_app_archives_on_linux |
|
0 commit comments