-
Notifications
You must be signed in to change notification settings - Fork 2
Chore: [AEA-6424] - new quality checks #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # restrict access to approving workflow changes | ||
| .github/workflows/ @NHSDigital/eps-admins | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,17 +4,24 @@ on: | |||||||||
| push: | ||||||||||
| branches: [main] | ||||||||||
|
|
||||||||||
| env: | ||||||||||
| BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }} | ||||||||||
| permissions: {} | ||||||||||
|
||||||||||
| permissions: {} | |
| permissions: | |
| contents: write | |
| id-token: write |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,30 +4,42 @@ on: | |
| pull_request: | ||
| branches: [main] | ||
|
|
||
| env: | ||
| BRANCH_NAME: ${{ github.event.pull_request.head.ref }} | ||
| permissions: {} | ||
|
||
|
|
||
| jobs: | ||
| dependabot-auto-approve-and-merge: | ||
| needs: quality_checks | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| secrets: | ||
| AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }} | ||
| AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }} | ||
| get_config_values: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| attestations: read | ||
| contents: read | ||
| packages: read | ||
| with: | ||
| verify_published_from_main_image: false | ||
| quality_checks: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| needs: [get_config_values] | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| packages: read | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| secrets: | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
|
||
| pr_title_format_check: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| pull-requests: write | ||
|
|
||
| get_issue_number: | ||
| runs-on: ubuntu-22.04 | ||
|
|
@@ -58,16 +70,16 @@ jobs: | |
|
|
||
| tag_release: | ||
| needs: [get_config_values] | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| packages: write | ||
| with: | ||
| dry_run: true | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| branch_name: ${{ github.event.pull_request.head.ref }} | ||
| tag_format: ${{ needs.get_config_values.outputs.tag_format }} | ||
| secrets: inherit | ||
|
|
||
| get_commit_id: | ||
| runs-on: ubuntu-22.04 | ||
|
|
@@ -82,12 +94,19 @@ jobs: | |
| package_code: | ||
| needs: [get_issue_number, get_config_values] | ||
| uses: ./.github/workflows/sam_package_code.yml | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| packages: read | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
|
|
||
| release_code: | ||
| needs: [get_issue_number, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| STACK_NAME: fhir-validator-pr-${{needs.get_issue_number.outputs.issue_number}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,17 +3,24 @@ name: deploy to environments | |
| on: | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }} | ||
| permissions: {} | ||
|
||
|
|
||
| jobs: | ||
| get_config_values: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@e798d5aee897de6f7dc387dd5623fcd9ba4c8929 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| attestations: read | ||
| contents: read | ||
| packages: read | ||
| with: | ||
| verify_published_from_main_image: true | ||
| quality_checks: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| needs: [get_config_values] | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| packages: read | ||
| secrets: | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
| with: | ||
|
|
@@ -31,10 +38,11 @@ jobs: | |
|
|
||
| tag_release: | ||
| needs: [quality_checks, get_commit_id, get_config_values] | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@5ac2707dd9cd60ad127275179495b9c890d74711 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| packages: write | ||
| with: | ||
| dry_run: false | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
|
|
@@ -49,12 +57,19 @@ jobs: | |
| package_code: | ||
| needs: [tag_release, get_config_values] | ||
| uses: ./.github/workflows/sam_package_code.yml | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| packages: read | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
|
|
||
| release_dev: | ||
| needs: [tag_release, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| ARTIFACT_BUCKET_PREFIX: ${{needs.tag_release.outputs.version_tag}} | ||
|
|
@@ -76,6 +91,9 @@ jobs: | |
| release_ref: | ||
| needs: [tag_release, release_dev, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| ARTIFACT_BUCKET_PREFIX: ${{needs.tag_release.outputs.version_tag}} | ||
|
|
@@ -93,6 +111,9 @@ jobs: | |
| release_qa: | ||
| needs: [tag_release, release_dev, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| ARTIFACT_BUCKET_PREFIX: ${{needs.tag_release.outputs.version_tag}} | ||
|
|
@@ -110,6 +131,9 @@ jobs: | |
| release_int: | ||
| needs: [tag_release, release_qa, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| ARTIFACT_BUCKET_PREFIX: ${{needs.tag_release.outputs.version_tag}} | ||
|
|
@@ -131,6 +155,9 @@ jobs: | |
| release_prod: | ||
| needs: [tag_release, release_int, package_code, get_commit_id, get_config_values] | ||
| uses: ./.github/workflows/sam_release_code.yml | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| with: | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| ARTIFACT_BUCKET_PREFIX: ${{needs.tag_release.outputs.version_tag}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ on: | |
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 6 * * 1' | ||
| permissions: {} | ||
|
|
||
| jobs: | ||
| sync-copilot-instructions: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,3 +44,4 @@ node_modules/ | |
| vendor | ||
| cfn_guard_output/ | ||
| .trivy_out/ | ||
| .sbom/ | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| rules: | ||
| secrets-outside-env: | ||
| ignore: | ||
| - delete_old_cloudformation_stacks.yml:28:31 | ||
| unpinned-images: | ||
| ignore: | ||
| - sam_release_code.yml:55:7 | ||
| - sam_package_code.yml:15:7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description still contains the placeholder/template sections (e.g. "Remove items from this list...", PR naming guidance). Please update it to reflect the actual change and remove the template text so the merge commit message/changelog entry is meaningful.