Repository navigation
Conversation
Run zizmor (GitHub Actions security linter) on changes to .github/ and fix the medium and high findings it reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Adversarial review (agent): Blockers: None. What I checked:
Nits:
|
Reword the advanced-security comment, drop persisted checkout credentials where flagged, and fold the new workflow into the existing zizmor job where one is hand-written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Answering the adversarial review (pushed in the second commit):
|
Contributor
Author
|
Eric approved landing this with the rest of the zizmor batch (ceo ask 13906, 12-01). Checks are green and the adversarial review is answered, so landing. |
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.
Why
zizmor flagged 3 high and 15 medium findings on
mainon 12-01: 1template-injection(high), 2github-env(high), 10dependabot-cooldown, 5excessive-permissions. Template injection lets anyone who can open a PR or name a branch run code with the workflow's token.The standard way
zizmor is the de facto linter for GitHub Actions security; shorebirdtech/setup-shorebird already runs it. The new
.github/workflows/zizmor.ymlrunszizmorcore/zizmor-action(SHA-pinned, zizmor 1.33.1) on pull requests and pushes tomainthat touch.github/**, withmin-severity: mediumand online audits on. The workflow token ispermissions: {}at the top andcontents: readfor the job; checkout doesn't persist credentials.advanced-security: falsebecause Code Security is off on our private repos, so findings go to the job log instead of a SARIF upload.What this fixes
_shorebird_ci_flutter.yamlandshorebird_ci.yamlregenerated withshorebird_ci generate --style static --no-update-actionsat shorebird_ci 0.3.4 (shorebird_ci verifyrejects hand edits). 0.3.4 movesinputs.subpackagesintoenv:(the template injection), addspersist-credentials: false, uses$/self-repository refs, and adds its own offline zizmor job torequired..github/workflowsat any severity, so the low/info ones are fixed too:persist-credentials: falseon themain.yamlanddeploy_pages.yamlcheckouts,$/refs to local actions, anddeploy_pages.yaml's${{ }}in its build script (Pages base path, Supabase URL/key) moved intoenv:.main.yamlgetspermissions: contents: read, pluspull-requests: readonchangesfor dorny/paths-filter.setup_flutteraction: the Flutter version read from the release manifest goes intoGITHUB_OUTPUT/GITHUB_ENV/GITHUB_PATH, so it's now checked against^[A-Za-z0-9._+-]+$. zizmor can't see the check, so the Install step carries# zizmor: ignore[github-env]with that reason.dependabot-cooldownaudit asks for. Security updates still skip the cooldown.What could break
deploy_pages.yamlonly runs on push tomain/dispatch, so this PR can't exercise it: its build step now reads the Pages base path and Supabase values from env, and its checkout no longer persists credentials (nothing after it pushes).main.yamljobs get a read-only token;changeskeepspull-requests: readfor paths-filter. The generated files moved shorebird_ci 0.3.3 -> 0.3.4.Landing
Lands with
--adminonce a maintainer has LGTM'd, the adversarial review comment is answered, and required checks are green.🤖 Generated with Claude Code