Skip to content

Improve GitHub Actions workflows based on zizmor static analysis - #98

Merged
douglatornell merged 4 commits into
mainfrom
zizmor
Sep 12, 2026
Merged

douglatornell merged 4 commits into
mainfrom
zizmor

Conversation

@douglatornell

Copy link
Copy Markdown
Member
  • locked down permissions in all workflows to prevent leakage of default permissions
  • added pragma comments to tell zizmor to ignore unpinned uses of our own reusable workflows
  • added explanatory comments to permissions items
  • added names to anonymous workflow jobs to improve readability in GHA UI

Added empty `permissions: {}` blocks to all workflows to prevent
unintended/unexpected default permissions from leaking in. This was a
recommendation from the zizmor auditor persona. This change aligns the
workflows with the latest recommendations for fine-grained permissions
configuration.
Annotated `uses` steps in all GitHub Actions workflows that call UBC-MOAD
reusable workflows with `zizmor: ignore[unpinned-uses]` comments. This
suppresses the auditor warning about unpinned actions and aligns with our
current workflow configuration practice of trusting our own workflows.
Added comments explaining the rationale for each `permissions` setting
in all GitHub Actions workflows. This improves clarity and aligns with
best practices for fine-grained permissions configuration.
Updated all workflows to include a meaningful `name` field for each job.
This enhances readability and makes the workflow steps easier to
understand in the GitHub Actions UI.
@douglatornell douglatornell added maintenance Repository maintenance github-actions Pull requests that update GitHub Actions code labels Sep 12, 2026
@douglatornell
douglatornell merged commit 105892c into main Sep 12, 2026
3 of 4 checks passed
@douglatornell
douglatornell deleted the zizmor branch September 12, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions Pull requests that update GitHub Actions code maintenance Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant