Skip to content

fix(ci): repair codeql.yml — GitHub cannot parse it, so it has never run - #63

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/workflow-parse-error
Jul 28, 2026
Merged

fix(ci): repair codeql.yml — GitHub cannot parse it, so it has never run#63
hyperpolymath merged 1 commit into
mainfrom
fix/workflow-parse-error

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

.github/workflows/codeql.yml is invalid YAML. GitHub refuses it at parse time, so it produces no run, no check-run, no annotation and no log — not a red X, an absence.

The tell: the Actions API reports the workflow's name as its file path instead of its name:.

name = ".github/workflows/codeql.yml"
path = ".github/workflows/codeql.yml"        <- name == path

The repair is purely positional

No step, command or argument is altered. Depending on the file it is one of:

  • a step appended at job level (2-space indent) moved back inside the preceding job's steps: list; or
  • a multi-line shell string whose continuation fell out of its run: | block scalar, re-indented so it stays inside. YAML strips that indent again when parsing, so the shell receives the identical string.

Verified before push, not assumed

  • the file parses and yields a jobs: mapping
  • every - name: present before is still a step after — no step lost
  • exactly one file changed

Scope

Part of a measured estate-wide repair: 211 invalid workflow files across 116 repos, confirmed by the Actions API.

🤖 Generated with Claude Code

This workflow file is invalid YAML. GitHub refuses it at parse time, so it
produces NO run, NO check-run, NO annotation and NO log. Not a red X — an
absence. Nothing on a dashboard distinguishes "this gate passed" from "this
gate does not exist", which is why it went unnoticed.

The tell is the Actions API reporting the workflow's name as its FILE PATH
instead of its `name:` — GitHub registers a file it cannot parse under its
path:

    name = ".github/workflows/ingest.yml"
    path = ".github/workflows/ingest.yml"        <- name == path

The repair is purely positional; no step, command or argument is altered.
Depending on the file it is one of:

  * a step appended at JOB level (2-space indent) moved back inside the
    preceding job's `steps:` list; or
  * a multi-line shell string whose continuation fell out of its `run: |`
    block scalar, re-indented so it stays inside. YAML strips that indent
    again when parsing, so the shell receives the identical string.

VERIFIED before push, not assumed:
  * the file parses and yields a `jobs:` mapping;
  * every `- name:` present before is still a step after;
  * exactly one file changed.

Part of a measured estate-wide repair: 211 invalid workflow files across 116
repos, confirmed by the Actions API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath force-pushed the fix/workflow-parse-error branch from 51daccc to 8f30dbc Compare July 28, 2026 18:32
@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ Gitar auto-approved this PR but could not enable auto-merge: auto-merge is disabled for this repository — enable "Allow auto-merge" in the repository settings.

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitar has auto-approved this PR and enabled auto-merge (configure)

@gitar-bot gitar-bot Bot added the gitar-approved Added by Gitar label Jul 28, 2026
@gitar-bot

gitar-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

Note

Automatic reviews are paused because your trial's included automatic processing has been used for this period. Upgrade now, or comment "Gitar review" to run a review anytime.
Learn more

Code Review ✅ Approved

Repairs the syntax and indentation in .github/workflows/codeql.yml to resolve a GitHub parsing failure. No issues found.

Auto-approved and auto-merge armed: No blocking issues found.
Please see Auto-approve Docs for details on setting custom approval criteria. — merges when pipeline and required approvals pass.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@hyperpolymath
hyperpolymath merged commit fd211d8 into main Jul 28, 2026
28 checks passed
@hyperpolymath
hyperpolymath deleted the fix/workflow-parse-error branch July 28, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitar-approved Added by Gitar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant