Skip to content

[COPP-8605] Deploy zizmor to open source repos#249

Merged
Lachlan Kidson (lachlankidson) merged 10 commits intomainfrom
COPP-8605
Jan 16, 2026
Merged

[COPP-8605] Deploy zizmor to open source repos#249
Lachlan Kidson (lachlankidson) merged 10 commits intomainfrom
COPP-8605

Conversation

@lachlankidson
Copy link
Copy Markdown
Contributor

@lachlankidson Lachlan Kidson (lachlankidson) commented Jan 12, 2026

COPP-8605

This PR:

  • Adds zizmor for GitHub Actions scanning on this repo's default branch.
  • Updates @actions to latest.

Warning

New permission blocks were derived from the annotations of runs in #250 , however this has not been tested for the release workflow. We suspect the permissions are the same - though you may want to merge that PR and perform a release of a dev version to be sure.


Actions changelogs:

Resolves #250

@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.


on:
pull_request_target:
pull_request:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

env:
CACHE_NAME: node-modules-cache

permissions: {}
Copy link
Copy Markdown
Contributor Author

@lachlankidson Lachlan Kidson (lachlankidson) Jan 13, 2026

Choose a reason for hiding this comment

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

Omitting permissions from the workflow and job definitions results in the following from zizmor:

warning[excessive-permissions]: overly broad permissions

This permissions block might look odd, but it addresses the warning and should be the minimum required permissions for this job (See the job summaries of #250)

Image

Comment thread .github/dependabot.yml
Comment on lines +13 to +14
cooldown:
default-days: 7
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lachlankidson Lachlan Kidson (lachlankidson) marked this pull request as ready for review January 13, 2026 10:46
Copilot AI review requested due to automatic review settings January 13, 2026 10:46
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 adds the zizmor GitHub Actions security scanning tool to the repository and enhances workflow security by pinning action versions to commit SHAs and adding explicit permission controls.

Changes:

  • Adds a new zizmor workflow to scan GitHub Actions for security issues
  • Updates all workflow files to use commit SHA-pinned action versions instead of tag references
  • Adds explicit permission declarations and persist-credentials: false to checkout actions across all workflows
  • Configures Dependabot with a 7-day cooldown period for updates

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/zizmor.yml New workflow that runs zizmor security scanner on push to main and PRs
.github/workflows/release.yml Pins action versions to SHAs, adds permissions block and persist-credentials: false
.github/workflows/pr.yml Pins action versions to SHAs, adds permissions block and persist-credentials: false
.github/workflows/main.yml Pins action versions to SHAs, adds permissions block and persist-credentials: false
.github/workflows/label-check.yml Changes trigger from pull_request_target to pull_request, pins action version to SHA, adds permissions block
.github/workflows/_test.yml Pins action versions to SHAs, adds persist-credentials: false
.github/dependabot.yml Adds 7-day cooldown period for Dependabot updates

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

Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/label-check.yml
@lachlankidson Lachlan Kidson (lachlankidson) merged commit 8942bf4 into main Jan 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants