Skip to content

Breaking: [AEA-0000] - Use zizmor and anchore tools#118

Open
anthony-nhs wants to merge 45 commits intomainfrom
test_zizmor
Open

Breaking: [AEA-0000] - Use zizmor and anchore tools#118
anthony-nhs wants to merge 45 commits intomainfrom
test_zizmor

Conversation

@anthony-nhs
Copy link
Copy Markdown
Contributor

@anthony-nhs anthony-nhs commented Mar 30, 2026

Summary

  • Routine Change

Details

  • use zizmor for action testing
  • changes to common workflows following zizmor review
  • use anchore tools for vulnerability testing
  • fix secret scan to register providers

Copilot AI review requested due to automatic review settings March 30, 2026 13:27
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-0000

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

This PR introduces zizmor configuration for GitHub Actions security/linting and updates several workflows to address findings (credential persistence, secret handling patterns, and safer variable interpolation).

Changes:

  • Add zizmor.yml with rule configuration and ignore locations.
  • Update multiple workflows to adjust actions/checkout credential persistence and to move ${{ }} interpolations into environment variables in shell steps.
  • Remove the “Combine Dependabot PRs” reusable workflow and its supporting combine-prs.js script.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
zizmor.yml Adds zizmor rule config and ignore list for existing workflow findings.
combine-prs.js Removes the JS helper that implemented PR-combining logic.
.github/workflows/update-dev-container-version.yml Disables persisted checkout credentials; refactors version interpolation to env var usage.
.github/workflows/tag-release-devcontainer.yml Adjusts checkout credential persistence and uses env var interpolation for shell safety.
.github/workflows/release.yml Removes secrets: inherit from reusable workflow call.
.github/workflows/quality-checks-devcontainer.yml Disables persisted checkout credentials; uses env var in logging step.
.github/workflows/pull_request.yml Removes secrets: inherit from reusable workflow call.
.github/workflows/get-repo-config.yml Disables persisted checkout credentials.
.github/workflows/dependabot-auto-approve-and-merge.yml Tightens job gating condition to bot PR author + non-fork constraint.
.github/workflows/combine-dependabot-prs.yml Removes the reusable workflow that created a combined Dependabot PR.
.devcontainer/devcontainer.json Updates the devcontainer base image version reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@anthony-nhs anthony-nhs changed the title Chore: [AEA-0000] - Use zizmor for action testing Chore: [AEA-0000] - Use zizmor and anchore tools Apr 1, 2026
@anthony-nhs anthony-nhs changed the title Chore: [AEA-0000] - Use zizmor and anchore tools Breaking: [AEA-0000] - Use zizmor and anchore tools Apr 1, 2026
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

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

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

Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.

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

Copilot reviewed 19 out of 20 changed files in this pull request and generated no new comments.

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

Copilot reviewed 21 out of 22 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

.github/workflows/tag-release-devcontainer.yml:89

  • .gitallowed still allowlists id-token: write (unquoted), but this workflow uses quoted permissions (id-token: "write", contents: "write"). If your secret-scanning step relies on .gitallowed, this quoted form may now be flagged after the allowlist lines for quoted variants were removed. Either switch to unquoted write here (matching other workflows) or re-add the quoted allowlist patterns if quotes are required.
    tag_release:
        permissions:
            id-token: "write"
            contents: "write"
        runs-on: ubuntu-22.04

@anthony-nhs anthony-nhs enabled auto-merge (squash) April 2, 2026 12:18
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

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.

3 participants