-
Notifications
You must be signed in to change notification settings - Fork 1
Chore: [AEA-0000] - move to new qc #653
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
base: main
Are you sure you want to change the base?
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,59 +4,42 @@ on: | |
| pull_request: | ||
| branches: [main] | ||
|
|
||
| env: | ||
| BRANCH_NAME: ${{ github.event.pull_request.head.ref }} | ||
|
|
||
| permissions: {} | ||
| jobs: | ||
anthony-nhs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| get_config_values: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| with: | ||
| verify_published_from_main_image: false | ||
| permissions: | ||
| attestations: read | ||
| contents: read | ||
| packages: read | ||
| dependabot-auto-approve-and-merge: | ||
| needs: quality_checks | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/dependabot-auto-approve-and-merge.yml@352f15f692c23b18f67215ad858f27b06a878717 | ||
| 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 }} | ||
| pr_title_format_check: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@b0172dbdb3af4ae232873106553c316d79d784fc | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| pull-requests: write | ||
| quality_checks: | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717 | ||
| 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 }} | ||
| run_docker_scan: false | ||
|
|
||
| secrets: | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
|
||
| get_issue_number: | ||
| runs-on: ubuntu-22.04 | ||
| outputs: | ||
| issue_number: ${{steps.get_issue_number.outputs.result}} | ||
|
|
||
| steps: | ||
| - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd | ||
| name: get issue number | ||
| id: get_issue_number | ||
| with: | ||
| script: | | ||
| if (context.issue.number) { | ||
| // Return issue number if present | ||
| return context.issue.number; | ||
| } else { | ||
| // Otherwise return issue number from commit | ||
| return ( | ||
| await github.rest.repos.listPullRequestsAssociatedWithCommit({ | ||
| commit_sha: context.sha, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| }) | ||
| ).data[0].number; | ||
| } | ||
| result-encoding: string | ||
|
|
||
|
|
||
| package_npm_code: | ||
| needs: [quality_checks, get_config_values] | ||
| uses: ./.github/workflows/package_npm_code.yml | ||
|
Comment on lines
43
to
45
|
||
|
|
@@ -65,11 +48,14 @@ jobs: | |
|
|
||
| tag_release: | ||
| needs: [get_config_values] | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717 | ||
| uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@c8f899f30a6a726859b0277faa73cd9ff7f4de20 | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| packages: write | ||
| with: | ||
| dry_run: true | ||
| pinned_image: ${{ needs.get_config_values.outputs.pinned_image }} | ||
| branch_name: ${{ github.event.pull_request.head.ref }} | ||
| publish_packages: packages/cdkConstructs,packages/deploymentUtils | ||
| tag_format: ${{ needs.get_config_values.outputs.tag_format }} | ||
| secrets: inherit | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,4 @@ _site/ | |
| vendor | ||
| .trivy_out/ | ||
| *.tgz | ||
| .sbom/ | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,10 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ignore: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # picomatch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-c2c7-rcm5-vvqj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # flatted | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-rf6f-7fwh-wjgh | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # minimatch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-3ppc-4f35-3m26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-7r86-cg39-jmmj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-23c5-xmqv-rm74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-25h7-pfq9-p65f | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+10
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - vulnerability: GHSA-c2c7-rcm5-vvqj | |
| # flatted | |
| - vulnerability: GHSA-rf6f-7fwh-wjgh | |
| # minimatch | |
| - vulnerability: GHSA-3ppc-4f35-3m26 | |
| - vulnerability: GHSA-7r86-cg39-jmmj | |
| - vulnerability: GHSA-23c5-xmqv-rm74 | |
| - vulnerability: GHSA-25h7-pfq9-p65f | |
| - vulnerability: GHSA-c2c7-rcm5-vvqj | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" | |
| # flatted | |
| - vulnerability: GHSA-rf6f-7fwh-wjgh | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" | |
| # minimatch | |
| - vulnerability: GHSA-3ppc-4f35-3m26 | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" | |
| - vulnerability: GHSA-7r86-cg39-jmmj | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" | |
| - vulnerability: GHSA-23c5-xmqv-rm74 | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" | |
| - vulnerability: GHSA-25h7-pfq9-p65f | |
| reason: "Temporary risk acceptance for a transitive dependency; review and remove once a fixed version is available and adopted." | |
| until: "2025-12-31" |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |||||
| install: install-python install-hooks install-node | ||||||
|
|
||||||
| install-node: | ||||||
| npm ci | ||||||
| npm ci --ignore-scripts true | ||||||
|
||||||
| npm ci --ignore-scripts true | |
| npm ci --ignore-scripts |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| rules: | ||
| unpinned-images: | ||
| # these workflows use unpinned images because they are using a full image passed in that contains the tag | ||
| ignore: | ||
| - package_npm_code.yml:14:13 | ||
anthony-nhs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 comment says this file will “restrict access” to workflow changes, but CODEOWNERS only enforces review ownership (when branch protection requires code owner review); it doesn’t restrict who can push changes. Consider rewording this to avoid implying access control is being applied.