|
1 | 1 | name: pull_request |
2 | | - |
3 | 2 | on: |
4 | | - pull_request: |
5 | | - branches: [ main ] |
| 3 | + pull_request: |
| 4 | + branches: [main] |
6 | 5 | permissions: {} |
7 | 6 | jobs: |
8 | | - get_config_values: |
9 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
10 | | - permissions: |
11 | | - attestations: "read" |
12 | | - contents: "read" |
13 | | - packages: "read" |
14 | | - with: |
15 | | - verify_published_from_main_image: false |
16 | | - |
17 | | - dependabot-auto-approve-and-merge: |
18 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
19 | | - permissions: |
20 | | - contents: "write" |
21 | | - pull-requests: "write" |
22 | | - secrets: |
23 | | - AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }} |
24 | | - AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }} |
25 | | - |
26 | | - quality_checks: |
27 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
28 | | - needs: [ get_config_values ] |
29 | | - permissions: |
30 | | - contents: "read" |
31 | | - packages: "read" |
32 | | - id-token: "write" |
33 | | - with: |
34 | | - pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
35 | | - secrets: |
36 | | - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
37 | | - |
38 | | - pr_title_format_check: |
39 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
40 | | - permissions: |
41 | | - pull-requests: "write" |
42 | | - |
43 | | - tag_release: |
44 | | - needs: [ get_config_values ] |
45 | | - uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
46 | | - permissions: |
47 | | - id-token: "write" |
48 | | - contents: "write" |
49 | | - packages: "write" |
50 | | - with: |
51 | | - dry_run: true |
52 | | - pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
53 | | - branch_name: ${{ github.event.pull_request.head.ref }} |
54 | | - tag_format: ${{ needs.get_config_values.outputs.tag_format }} |
| 7 | + get_config_values: |
| 8 | + uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
| 9 | + permissions: |
| 10 | + attestations: "read" |
| 11 | + contents: "read" |
| 12 | + packages: "read" |
| 13 | + with: |
| 14 | + verify_published_from_main_image: false |
| 15 | + quality_checks: |
| 16 | + uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
| 17 | + needs: [get_config_values] |
| 18 | + permissions: |
| 19 | + contents: "read" |
| 20 | + packages: "read" |
| 21 | + id-token: "write" |
| 22 | + with: |
| 23 | + pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
| 24 | + secrets: |
| 25 | + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
| 26 | + pr_title_format_check: |
| 27 | + uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
| 28 | + permissions: |
| 29 | + pull-requests: "write" |
| 30 | + tag_release: |
| 31 | + needs: [get_config_values] |
| 32 | + uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8b259f4f2d2b8ff1345fb0d2f9b9f0fbb9d19845 |
| 33 | + permissions: |
| 34 | + id-token: "write" |
| 35 | + contents: "write" |
| 36 | + packages: "write" |
| 37 | + with: |
| 38 | + dry_run: true |
| 39 | + pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} |
| 40 | + branch_name: ${{ github.event.pull_request.head.ref }} |
| 41 | + tag_format: ${{ needs.get_config_values.outputs.tag_format }} |
0 commit comments