Repository navigation
ci: audit workflows with zizmor - #2002
Merged
Merged
Conversation
zizmor flagged 83 findings in the workflows and composite actions at low severity and above. Fix them and gate future changes on the audit. The audit runs offline with --min-severity low, from a pre-commit hook and from a new rw-workflow-lint job that pre-merge runs whenever .github/ or the pre-commit config changes. Both use zizmor 1.33.1; CI verifies the release checksum before running it. Fixes: - pin every third-party action to a commit SHA - default workflow permissions to none and grant each job its scopes - pass CODECOV_TOKEN by name instead of secrets: inherit - install hugo from docs/package-lock.json instead of npm install -g - call this repository's hugo actions as ./.github/actions/... Suppressed inline, with the reason next to each: the comment-triggered workflows, which check the commenter first; the docs preview on pull_request_target, which takes only Markdown from the pull request; the checkouts that keep credentials to push; and the back-merge job, which has no checkout to resolve a local action from. AGENTS.md documents the audit and the conventions it enforces. jira: trivial risk: nonprod
no23reason
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds zizmor to check the GitHub Actions workflows for security problems, and fixes the 83 findings it reported in the workflows and composite actions.
The check
.github/zizmor.ymlholds the configuration. Theself-repositoryrule is off, so the workflows can keep calling this repo's own actions and workflows as./.github/....rw-workflow-lint.yamlis a new reusable workflow. It downloads zizmor 1.33.1, checks the download against a checksum, and runszizmor --offline --min-severity low ..pre-merge.yamlruns it through a newlint-workflowsjob, whichstatus-checkwaits on. A newworkflowsfilter inrw-collect-changes.yamlmakes the job run only when.github/or.pre-commit-config.yamlchanges.Fixes
permissions: {}, and each job gets only the access it uses.rw-python-testsnow receives onlyCODECOV_TOKENinstead ofsecrets: inherit.npm install -g hugo-extendedis removed.docs/package-lock.jsonalready pins hugo-extended, sonpm ciinstalls it and the build runs it withnpx --no hugo../.github/actions/...instead ofgooddata/gooddata-python-sdk/...@master.Suppressed inline, each with a comment giving the reason:
sdk-slash-commandsandstaging-testsare triggered by PR comments. Both already check the commenter before doing anything.netlify-deploy-previewusespull_request_target, but it only copies the Markdown underdocs/content/enfrom the pull request.bump-versionand themergeaction keep the checkout credentials on purpose, because they push afterwards.rel-dev-back-mergestill calls the merge action as@master, because the job has no checkout that a./path could use.AGENTS.mddescribes the check and the rules it enforces.Risk
nonprod: only CI and documentation change. The release, docs-deploy and back-merge workflows run only after merge or when started by hand, so this PR's checks don't exercise them. The first run of each should be watched.
Summary by CodeRabbit