feat: shared scan baseline as a reusable workflow - #3
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Introduces a reusable GitHub Actions workflow (workflow_call) that centralizes the organization’s “scan baseline” (gitleaks, trufflehog, actionlint, zizmor) so downstream repositories can invoke a single maintained workflow instead of copying multiple files.
Changes:
- Adds a reusable
Scanworkflow callable viaworkflow_call. - Implements four scan/lint jobs using digest-pinned container images.
- Standardizes checkout behavior (pinned
actions/checkout,persist-credentials: false, full history where required).
Suppressed comments (1)
.github/workflows/scan.yml:79
- The zizmor container is currently given write access to the checked-out repository. Since this job only audits the workflow files, prefer a read-only bind mount to prevent accidental or malicious modifications to the workspace.
docker run --rm -e GH_TOKEN -v "$PWD:/repo" \
ghcr.io/zizmorcore/zizmor@sha256:863026d54f91271b10b60b67ad8054cb37120167e162482597db102b3026a284 \
/repo # 1.29.0
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+58
to
+60
| docker run --rm -v "$PWD:/repo" --workdir /repo \ | ||
| rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 \ | ||
| -color # 1.7.12 |
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.
Problem
The scan baseline (gitleaks, trufflehog, actionlint, zizmor) exists as copied workflow files in design and skillcheck, partially in a few repos, and not at all in most; every version or digest bump costs one commit per repo.
Solution
One
workflow_callworkflow here carries all four jobs, every image digest-pinned (a version tag is mutable, and each container gets the whole repository). Repositories add a ~10-line caller:Rollout lands per repo after a pilot proves the call path. Decides the open call on ffsstack#53.
🤖 Generated with Claude Code