Skip to content

🐛 fix(ci): quote docs pip run to fix YAML startup_failure - #154

Merged
konih merged 1 commit into
mainfrom
worktree-fix-docs-yaml-startup
Jul 27, 2026
Merged

konih merged 1 commit into
mainfrom
worktree-fix-docs-yaml-startup

Conversation

@konih

@konih konih commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Problem

main has a red Docs check. The .github/workflows/docs.yaml run fails as a GitHub Actions startup_failure (0 jobs, no logs) — the workflow file is rejected before any job schedules.

Root cause

Commit e838ffe put the pip install on a single-line run: scalar:

run: pip install --only-binary=:all: --require-hashes -r docs/requirements-docs.txt

The :all: (colon-space) is a YAML mapping-value indicator, so the parser rejects the whole file. actionlint reproduces it: line 76: mapping values are not allowed in this context.

Fix

Move the command into a literal block scalar (run: |), matching the "Detect docs changes" step in the same file. Colons are literal inside a block scalar; the supply-chain pin (--only-binary=:all: --require-hashes) is unchanged.

Verification

  • actionlint .github/workflows/docs.yaml → clean
  • python3 -c "import yaml; yaml.safe_load(...)" → parses OK
  • The Docs workflow on this PR is itself the live proof.

Fix-forward (not revert): preserves the legitimate --only-binary binary-only pin.

e838ffe put `pip install --only-binary=:all: ...` on a single-line
`run:` scalar; the `:all: ` colon-space is a YAML mapping indicator,
so the Actions parser rejected docs.yaml -> startup_failure (0 jobs),
leaving main's Docs check red since the commit landed. Move the command
into a literal block scalar so colons are literal.
@sonarqubecloud

Copy link
Copy Markdown

@konih
konih merged commit 47bbef5 into main Jul 27, 2026
25 checks passed
@konih
konih deleted the worktree-fix-docs-yaml-startup branch July 27, 2026 04:56
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.

1 participant