Skip to content

Improve GitHub Actions workflows based on zizmor static analysis#161

Merged
douglatornell merged 4 commits into
mainfrom
zizmor
Jun 27, 2026
Merged

Improve GitHub Actions workflows based on zizmor static analysis#161
douglatornell merged 4 commits into
mainfrom
zizmor

Conversation

@douglatornell

@douglatornell douglatornell commented Jun 27, 2026

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.
@douglatornell douglatornell added maintenance Package or repo maintenance github_actions Pull requests that update GitHub Actions code labels Jun 27, 2026
@github-actions github-actions Bot added this to the v26.2 milestone Jun 27, 2026
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.00%. Comparing base (b425197) to head (38abdb7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #161   +/-   ##
=======================================
  Coverage   92.00%   92.00%           
=======================================
  Files          15       15           
  Lines        2339     2339           
  Branches      126      126           
=======================================
  Hits         2152     2152           
  Misses        172      172           
  Partials       15       15           
Flag Coverage Δ
unittests 92.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Added descriptive comments to all GitHub Actions workflow permission blocks to
clarify the specific purpose for each permission. This improves workflow
readability and aids in future maintenance and auditing efforts.
Updated the `name` field in all GitHub Actions workflows to provide better
clarity about the purpose of each job. This aids maintainability and improves
the readability of workflow definitions and the GitHub Actions UI.
@douglatornell
douglatornell merged commit 1004698 into main Jun 27, 2026
10 checks passed
@douglatornell
douglatornell deleted the zizmor branch June 27, 2026 19:10
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 Package or repo maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant