Add automated security scanning for GitHub Actions workflows #10042
+963
−2
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.
Implements automated security scanning in CI/CD to catch workflow vulnerabilities at PR time using zizmor and actionlint. Blocks merges on High/Critical findings.
Changes
Pre-commit hooks (
.pre-commit-config.yaml)CI workflow (
.github/workflows/security-lint.md).github/workflows/**and push to main.lock.ymlfilesMakefile target (
make security-lint)build+recompile+ security scansDocumentation (DEVGUIDE.md)
Usage
CI runs automatically on workflow changes. High/Critical findings block merge.
Original prompt
This section details on the original issue you should resolve
<issue_title>[plan] Implement automated security scanning in CI/CD pipeline</issue_title>
<issue_description>## Objective
Integrate zizmor and actionlint into the CI/CD pipeline to automatically catch security and code quality issues before they reach production.
Context
Current State: Manual static analysis via scheduled workflow
Goal: Prevent security issues at PR time with automated checks
Tools: zizmor (security), actionlint (linting + shellcheck)
Automated security scanning provides continuous protection by:
Approach
Phase 1: Add Pre-commit Hooks (Local Development)
.pre-commit-config.yamlin repository rootPhase 2: Add CI/CD Checks (Required for PRs)
.github/workflows/security-lint.mdPhase 3: Enhanced Reporting
Files to Create
.pre-commit-config.yaml(pre-commit hooks configuration).github/workflows/security-lint.md(CI security checks)DEVGUIDE.md(document security scanning setup)Makefile(addmake security-linttarget)Example Pre-commit Configuration
Example CI Workflow (security-lint.md)
Makefile Target
Acceptance Criteria
make security-lintaddedTesting
Dependencies
This issue should be implemented after fixing:
This ensures the CI won't immediately fail when implemented.
References
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.