Skip to content

Chore: [AEA-6242] - use new quality checks#1071

Merged
anthony-nhs merged 3 commits intomainfrom
new_qc
Apr 13, 2026
Merged

Chore: [AEA-6242] - use new quality checks#1071
anthony-nhs merged 3 commits intomainfrom
new_qc

Conversation

@anthony-nhs
Copy link
Copy Markdown
Contributor

Summary

  • Routine Change

Details

  • use new quality checks

Copilot AI review requested due to automatic review settings April 13, 2026 13:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates repository security/quality tooling configuration to align with newer checks, tightening GitHub Actions token permissions and switching vulnerability scanning/ignores to newer mechanisms.

Changes:

  • Introduces Zizmor config and Grype config; removes legacy Trivy config/ignore files.
  • Hardens multiple GitHub Actions workflows by setting default permissions: {} and adding explicit job permissions.
  • Updates devcontainer image version and adds CODEOWNERS protection for workflow changes.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
zizmor.yml Adds Zizmor rule ignores for specific workflow findings.
trivy.yaml Removes legacy Trivy config reference.
.trivyignore.yaml Removes legacy Trivy ignore list.
.pre-commit-config.yaml Adds a local Grype scanning hook.
.grype.yaml Adds Grype ignore configuration.
.github/workflows/sync_copilot.yml Sets default workflow token permissions to none; keeps explicit job permission.
.github/workflows/release.yml Adds explicit permissions per job and updates to newer quality checks workflow ref.
.github/workflows/pull_request.yml Adds explicit permissions per job; removes merge_group trigger.
.github/workflows/delete_old_cloudformation_stacks.yml Adds default permissions: {}; hardens checkout credentials persistence.
.github/workflows/ci.yml Adds explicit permissions per job and updates to newer quality checks workflow ref.
.github/workflows/cdk_release_code.yml Adds default permissions: {} and updates checkout pinning / env usage.
.github/workflows/cdk_package_code.yml Adds default permissions: {} and hardens checkout credentials persistence.
.github/CODEOWNERS Restricts approvals for workflow changes to admins.
.devcontainer/devcontainer.json Bumps devcontainer image version.
Comments suppressed due to low confidence (1)

.github/workflows/cdk_package_code.yml:25

  • This reusable workflow uploads an artifact via actions/upload-artifact. With top-level permissions: {}, the package_code job likely needs explicit actions: write permission for artifact upload; otherwise the upload step may be denied.
permissions: {}

jobs:
  package_code:
    runs-on: ubuntu-22.04
    container:
      image: ${{ inputs.pinned_image }}
      options: --user 1001:1001 --group-add 128
    defaults:
      run:
        shell: bash
    permissions:
      id-token: write
      contents: read
      packages: read
    steps:

Comment on lines +41 to 45
permissions: {}

jobs:

release_code:
Comment on lines 56 to 63
package_code:
needs: [tag_release, get_config_values]
uses: ./.github/workflows/cdk_package_code.yml
permissions:
contents: read
id-token: write
packages: read
with:
Comment on lines 66 to 72
release_dev:
needs: [tag_release, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
Comment on lines 3 to 8
on:
pull_request:
branches: [main]
merge_group:
branches: [main]

env:
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
permissions: {}

Comment on lines 115 to 123
package_code:
uses: ./.github/workflows/cdk_package_code.yml
needs: [get_config_values]
permissions:
contents: read
id-token: write
packages: read
with:
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
Comment on lines 85 to 91
release_qa:
needs: [tag_release, release_dev, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
Comment on lines 88 to 94
release_ref:
needs: [tag_release, release_dev, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
Comment on lines 105 to 111
release_qa:
needs: [tag_release, release_dev, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
Comment on lines 123 to 129
release_int:
needs: [tag_release, release_qa, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
Comment on lines 145 to 151
release_prod:
needs: [tag_release, release_int, package_code, get_commit_id, get_config_values]
uses: ./.github/workflows/cdk_release_code.yml
permissions:
contents: write
id-token: write
with:
@sonarqubecloud
Copy link
Copy Markdown

@anthony-nhs anthony-nhs merged commit b7688e3 into main Apr 13, 2026
15 checks passed
@anthony-nhs anthony-nhs deleted the new_qc branch April 13, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants