Add zizmor GitHub Actions security analysis workflow#15987
Draft
Add zizmor GitHub Actions security analysis workflow#15987
Conversation
Adds a non-blocking zizmor workflow that: - Runs on PRs and pushes to main when workflow files change - Runs daily on a schedule to catch drift - Uploads SARIF results to GitHub Code Scanning (Security tab) - Uses the official zizmor-action with advanced-security enabled This is a non-blocking integration - findings appear as annotations and in the Security tab but do not fail the build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Suppresses dangerous-triggers findings on 4 workflows that intentionally use workflow_run/pull_request_target with explicit fork validation guards already in place. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15987Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15987" |
Contributor
|
🎬 CLI E2E Test Recordings — 56 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #24164210779 |
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
Adds zizmor — a static analysis tool for GitHub Actions workflow security — to the CI pipeline.
What's included
.github/workflows/zizmor.ymlmainwhen workflow files changezizmorcore/zizmor-action(pinned to SHA).github/zizmor.ymldangerous-triggersfindings on 4 workflows that intentionally useworkflow_run/pull_request_targetwith explicit fork validation guardsBaseline scan
The initial scan found 236 findings (after suppression) across 33 of 39 workflows:
inputs.*,env.*,matrix.*inrun:— not externally controllablepersist-credentials: false— auto-fixableThese findings are informational and do not block CI. They'll be visible in the Security tab for gradual triage and improvement.
References