Skip to content

ci: add Zizmor workflow and apply recommendations#282

Open
HastD wants to merge 1 commit intoGrapheneOS:mainfrom
HastD:zizmor
Open

ci: add Zizmor workflow and apply recommendations#282
HastD wants to merge 1 commit intoGrapheneOS:mainfrom
HastD:zizmor

Conversation

@HastD
Copy link
Copy Markdown

@HastD HastD commented Feb 22, 2026

Add a workflow that runs Zizmor, a static analysis tool for GitHub Actions, on pushes to main and PRs. Also apply Zizmor's recommendations:

Given the relatively simple nature of the existing CI jobs, it seems unlikely that any of the above issues represents an actual vulnerability in the workflow. Nonetheless, this reflects best practices for GitHub Actions and reduces the risk of a vulnerability being introduced in the future if additional CI workflows were to be added.

Add a workflow that runs Zizmor, a static analysis tool for GitHub
Actions, on pushes to main and PRs. Also apply Zizmor's recommendations:

* Add cooldown timer for Dependabot updates.
* Deny unnecessary permissions to workflows.
* Add concurrency limits to cancel redundant workflow runs.
* Pin `actions/checkout` to the latest commit hash.
* Set `persist-credentials: false` for `actions/checkout`.
* Replace template expansions with environment variables in code
  contexts.
* Pin Alpine container image to non-`latest` tag.
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.

1 participant