|
19 | 19 | # Determine which paths changed to enable smart test filtering |
20 | 20 | paths-filter: |
21 | 21 | runs-on: ubuntu-latest |
| 22 | + permissions: |
| 23 | + contents: read |
22 | 24 | outputs: |
23 | 25 | core: ${{ steps.filter.outputs.core }} |
24 | 26 | assemble: ${{ steps.filter.outputs.assemble }} |
|
76 | 78 | # Calculate version from git describe (once, shared by all jobs) |
77 | 79 | get-version: |
78 | 80 | runs-on: ubuntu-latest |
| 81 | + permissions: |
| 82 | + contents: read |
79 | 83 | outputs: |
80 | 84 | version: ${{ steps.version.outputs.version }} |
81 | 85 | steps: |
@@ -427,6 +431,9 @@ jobs: |
427 | 431 | needs: [paths-filter, get-version, build-core] |
428 | 432 | if: needs.paths-filter.outputs.core == 'true' || needs.paths-filter.outputs.docker == 'true' |
429 | 433 | runs-on: ubuntu-latest |
| 434 | + permissions: |
| 435 | + contents: read |
| 436 | + packages: read |
430 | 437 |
|
431 | 438 | steps: |
432 | 439 | - name: Checkout repository |
@@ -493,6 +500,9 @@ jobs: |
493 | 500 | needs: [paths-filter, get-version, build-core, build-derivatives] |
494 | 501 | if: needs.paths-filter.outputs.assemble == 'true' || needs.paths-filter.outputs.core == 'true' || needs.paths-filter.outputs.docker == 'true' |
495 | 502 | runs-on: ubuntu-latest |
| 503 | + permissions: |
| 504 | + contents: read |
| 505 | + packages: read |
496 | 506 |
|
497 | 507 | steps: |
498 | 508 | - name: Checkout repository |
@@ -567,6 +577,9 @@ jobs: |
567 | 577 | needs: [paths-filter, get-version, build-core, build-derivatives] |
568 | 578 | if: needs.paths-filter.outputs.classify == 'true' || needs.paths-filter.outputs.core == 'true' || needs.paths-filter.outputs.docker == 'true' |
569 | 579 | runs-on: ubuntu-latest |
| 580 | + permissions: |
| 581 | + contents: read |
| 582 | + packages: read |
570 | 583 |
|
571 | 584 | steps: |
572 | 585 | - name: Checkout repository |
@@ -641,6 +654,9 @@ jobs: |
641 | 654 | needs: [paths-filter, get-version, build-core, build-derivatives] |
642 | 655 | if: needs.paths-filter.outputs.phylo == 'true' || needs.paths-filter.outputs.core == 'true' || needs.paths-filter.outputs.docker == 'true' |
643 | 656 | runs-on: ubuntu-latest |
| 657 | + permissions: |
| 658 | + contents: read |
| 659 | + packages: read |
644 | 660 |
|
645 | 661 | steps: |
646 | 662 | - name: Checkout repository |
|
0 commit comments