fix(ci): switch CodeQL language matrix to actions#13
Merged
Conversation
Hypatia flagged the repo's codeql.yml as nominal-only SAST (alerts #25 and #28): the matrix listed `javascript-typescript`, but the repo has no source files in any CodeQL-scannable language. Every analyze run therefore exited with "no source files" and recorded zero results, giving false confidence. Switch the matrix to `actions` — CodeQL's GitHub Actions analyser scans workflow files, which every repo has. This makes the SAST real work instead of theatre. Closes Hypatia alerts hypatia/scorecard/StaticAnalysis (#28) and hypatia/workflow_audit/codeql_language_matrix_mismatch (#25). Refs standards#91 Phase D (HCG hygiene). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
🔍 Hypatia Security ScanFindings: 14 issues detected
View findings[
{
"reason": "Issue in quality.yml",
"type": "missing_workflow",
"file": "quality.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in security-policy.yml",
"type": "missing_workflow",
"file": "security-policy.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Nickel file missing SPDX-License-Identifier header (1 occurrences, CWE-1104)",
"type": "ncl_missing_spdx",
"file": "/home/runner/work/http-capability-gateway/http-capability-gateway/configs/config.ncl",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "Download-and-execute pattern (curl|wget pipe to shell) -- verify integrity before execution (1 occurrences, CWE-494)",
"type": "shell_download_then_run",
"file": "/home/runner/work/http-capability-gateway/http-capability-gateway/setup.sh",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "Nominal-only SAST in http-capability-gateway: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
"type": "StaticAnalysis",
"file": "/home/runner/work/http-capability-gateway/http-capability-gateway",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Add CodeQL or equivalent SAST workflow.",
"scorecard_check": "SAST"
},
{
"reason": "Repository has 2 non-main remote branch(es). Policy: single main branch only.",
"type": "GS007",
"file": ".",
"action": "delete_remote_branches",
"rule_module": "git_state",
"severity": "medium"
},
{
"reason": "6a2ml file outside canonical location -- must be in .machine_readable/6a2/",
"type": "SD004",
"file": ".machine_readable/STATE.a2ml",
"action": "move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "6a2ml file outside canonical location -- must be in .machine_readable/6a2/",
"type": "SD004",
"file": ".machine_readable/META.a2ml",
"action": "move",
"rule_module": "structural_drift",
"severity": "critical"
},
{
"reason": "6a2ml file outside canonical location -- must be in .machine_readable/6a2/",
"type": "SD004",
"file": ".machine_readable/ECOSYSTEM.a2ml",
"action": "move",
"rule_module": "structural_drift",
"severity": "critical"
}
]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.
Summary
codeql.ymlas nominal-only SAST: the language matrix listedjavascript-typescript, but the repo has no source files in any CodeQL-scannable language. Every analyze run exited with "no source files" and recorded zero results.actions— CodeQL's GitHub Actions analyser scans workflow files, which every repo has.Closes
hypatia/workflow_audit/codeql_language_matrix_mismatchhypatia/scorecard/StaticAnalysis(nominal-only SAST)Test plan
analyze (actions, none)runs green on this PRRefs standards#91 Phase D (HCG repo hygiene as part of the benchmark scaffold).
🤖 Generated with Claude Code