Repository navigation
Commit de70f6c
committed
fix(ci): quote a workflow step name that YAML truncates at " #", add a guard
`.github/workflows/lint.yml` carried one `- name:` step name as an unquoted
plain scalar containing ` #13419` -- YAML reads a space + hash inside an
unquoted plain scalar as the start of a comment, so the step's real parsed
name was the three-letter string `The`, not the text an author wrote. Quote
the scalar so the full text stays part of the value.
Add `check:workflow-step-name-quoting` (scripts/check-workflow-step-name-quoting.mjs),
a grep-level guard wired as the last step of the `lint` job: an unquoted
`- name:` value containing ` #` is a violation, using the criterion triage
priced and the PM ruling confirmed (#15149) -- look only at the first
non-blank character after `- name:`, and never judge "quoted" by stripping
quote characters, which false-positives on a legal unquoted name carrying an
embedded `"` (check-links.yml's real specimen, pinned as the guard's negative
control).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU1 parent cca1dc0 commit de70f6c
3 files changed
Lines changed: 504 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
| 746 | + | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| |||
4396 | 4396 | | |
4397 | 4397 | | |
4398 | 4398 | | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
| 4402 | + | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
| 4409 | + | |
| 4410 | + | |
| 4411 | + | |
| 4412 | + | |
| 4413 | + | |
4399 | 4414 | | |
4400 | 4415 | | |
4401 | 4416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
0 commit comments