Repository navigation
fix(ci): add language: actions to codeql.yml matrix (WF020) - #476
Merged
Merged
Conversation
CodeQL now also scans workflow YAML for CI/CD-specific weaknesses. Clears hypatia's own workflow_audit codeql_missing_actions_language finding -- the same WF020 fixed in empty-linter#22. Note: this finding recurs estate-wide (dozens of codeql.yml copies derive from a shared template). The canonical fix is once, upstream in the .git-private-farm template, then propagated; this is the in-repo fix for hypatia pending that. https://claude.ai/code/session_01EqEysvTPzPwhS9ZGY7EYdr
🔍 Hypatia Security ScanFindings: 48 issues detected
View findings[
{
"reason": "Action actions/add-to-project@v1.0.2 needs attention",
"type": "unpinned_action",
"file": "add-to-roadmap.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in add-to-roadmap.yml",
"type": "missing_timeout_minutes",
"file": "add-to-roadmap.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "1 workflow(s) with tag-pinned (not SHA-pinned) actions in hypatia",
"type": "DependencyPinning",
"file": "/home/runner/work/hypatia/hypatia",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Pin GitHub Actions and Docker base images by SHA hash.",
"scorecard_check": "Pinned-Dependencies"
},
{
"reason": "Repository has 5 non-main remote branch(es). Policy: single main branch only.",
"type": "GS007",
"file": ".",
"action": "delete_remote_branches",
"rule_module": "git_state",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/workflow_audit/missing_timeout_minutes -- Hypatia workflow_audit: missing_timeout_minutes -- 0 day(s) old",
"type": "CSA001",
"file": "add-to-roadmap.yml",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/workflow_audit/unpinned_action -- Hypatia workflow_audit: unpinned_action -- 0 day(s) old",
"type": "CSA001",
"file": "add-to-roadmap.yml",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 10 day(s) old",
"type": "CSA001",
"file": "src/ui/gossamer/README.adoc",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 10 day(s) old",
"type": "CSA001",
"file": "scripts/ci-tools/Cargo.toml",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 10 day(s) old",
"type": "CSA001",
"file": "scripts/bench-tools/Cargo.toml",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/structural_drift/SD022 -- Hypatia structural_drift: SD022 -- 10 day(s) old",
"type": "CSA001",
"file": "ffi/zig/README.adoc",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
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.
What
Adds
language: actions(build-mode: none) to hypatia'scodeql.ymlmatrix, so CodeQL scans workflow YAML for CI/CD-specific weaknesses. Clears hypatia's ownworkflow_auditcodeql_missing_actions_language(WF020) finding — the same fix landed in empty-linter#22.Why this is a per-repo patch, not the real fix
WF020 recurs estate-wide — dozens of
codeql.ymlcopies across thestandardsmonorepo's sub-repos are missinglanguage: actions. That is thefix_locus: upstreamcase from the reflexivity advisory (#475): the canonical fix is once, in the shared.git-private-farmcodeql template, then propagated. I can't reach.git-private-farmfrom this session's scope, so this is the in-repo fix for hypatia (a CI/CD-critical, reflexive subject — done here only because you explicitly authorized the cleanup).I deliberately did not bulk-edit the ~30
codeql.ymlcopies in thestandardsmonorepo: several live in protected carve-out repos (palimpsest-license,consent-aware-http) and self-language repos (a2ml,k9-svc), which the advisory says must not be swept.Validation
javascript-typescript+actions.language:\s*actions), and the exact pattern verified-green in empty-linter#22 (theanalyze (actions, none)job).https://claude.ai/code/session_01EqEysvTPzPwhS9ZGY7EYdr
Generated by Claude Code