|
4 | 4 | pull_request: |
5 | 5 | branches: [main] |
6 | 6 |
|
7 | | -env: |
8 | | - BRANCH_NAME: ${{ github.event.pull_request.head.ref }} |
| 7 | +permissions: {} |
9 | 8 |
|
10 | 9 | jobs: |
11 | 10 | dependabot-auto-approve-and-merge: |
12 | 11 | needs: quality_checks |
13 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@5ac2707dd9cd60ad127275179495b9c890d74711 |
| 12 | + uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 |
| 13 | + permissions: |
| 14 | + contents: write |
| 15 | + pull-requests: write |
14 | 16 | secrets: |
15 | 17 | AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }} |
16 | 18 | AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }} |
17 | 19 | get_config_values: |
18 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@5ac2707dd9cd60ad127275179495b9c890d74711 |
| 20 | + uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 |
| 21 | + permissions: |
| 22 | + attestations: read |
| 23 | + contents: read |
| 24 | + packages: read |
19 | 25 | with: |
20 | 26 | verify_published_from_main_image: false |
21 | 27 | quality_checks: |
22 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 |
| 28 | + uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 |
23 | 29 | needs: [get_config_values] |
| 30 | + permissions: |
| 31 | + contents: read |
| 32 | + id-token: write |
| 33 | + packages: read |
24 | 34 | with: |
25 | 35 | pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
26 | 36 | secrets: |
27 | 37 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
28 | 38 |
|
29 | 39 | pr_title_format_check: |
30 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@5ac2707dd9cd60ad127275179495b9c890d74711 |
| 40 | + uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 |
| 41 | + permissions: |
| 42 | + pull-requests: write |
31 | 43 |
|
32 | 44 | get_issue_number: |
33 | 45 | runs-on: ubuntu-22.04 |
@@ -58,16 +70,16 @@ jobs: |
58 | 70 |
|
59 | 71 | tag_release: |
60 | 72 | needs: [get_config_values] |
61 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 |
| 73 | + uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 |
62 | 74 | permissions: |
63 | 75 | id-token: write |
64 | 76 | contents: write |
| 77 | + packages: write |
65 | 78 | with: |
66 | 79 | dry_run: true |
67 | 80 | pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
68 | 81 | branch_name: ${{ github.event.pull_request.head.ref }} |
69 | 82 | tag_format: ${{ needs.get_config_values.outputs.tag_format }} |
70 | | - secrets: inherit |
71 | 83 |
|
72 | 84 | get_commit_id: |
73 | 85 | runs-on: ubuntu-22.04 |
|
82 | 94 | package_code: |
83 | 95 | needs: [get_issue_number, get_config_values] |
84 | 96 | uses: ./.github/workflows/sam_package_code.yml |
| 97 | + permissions: |
| 98 | + contents: read |
| 99 | + id-token: write |
| 100 | + packages: read |
85 | 101 | with: |
86 | 102 | pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
87 | 103 |
|
|
0 commit comments