Skip to content

fix(ci): switch CodeQL language matrix to actions#13

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/codeql-language-matrix-to-actions
May 20, 2026
Merged

fix(ci): switch CodeQL language matrix to actions#13
hyperpolymath merged 1 commit into
mainfrom
fix/codeql-language-matrix-to-actions

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

  • Hypatia flagged HCG's codeql.yml as nominal-only SAST: the language matrix listed javascript-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.
  • Switch the matrix to actions — CodeQL's GitHub Actions analyser scans workflow files, which every repo has.

Closes

Test plan

Refs standards#91 Phase D (HCG repo hygiene as part of the benchmark scaffold).

🤖 Generated with Claude Code

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>
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 14 issues detected

Severity Count
🔴 Critical 6
🟠 High 3
🟡 Medium 5

⚠️ Action Required: Critical security issues found!

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

@hyperpolymath
hyperpolymath merged commit 029fe35 into main May 20, 2026
14 checks passed
@hyperpolymath
hyperpolymath deleted the fix/codeql-language-matrix-to-actions branch May 20, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants