Skip to content

Commit ee86729

Browse files
authored
ci: quote name containing colon to fix Scorecard workflow parser (#164)
The unquoted step name "Strong guard - detect release-please PRs (autorelease: pending label)" contains "autorelease: pending" (colon + space). YAML plain scalars cannot contain unquoted "word: " sequences (it looks like start of a new mapping key). This was causing Scorecard's workflow parser to fail with: "mapping values are not allowed in this context" Affecting Pinned-Dependencies, Token-Permissions, Dangerous-Workflow, Packaging, SAST (all went to -1). Quoting the name makes the scalar safe. Verified with actionlint and local scorecard run (now gets 10/10 on the checks). See similar fixes in other projects for names with special chars. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent 4dadafa commit ee86729

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/auto-approve.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
# implemented here (label check below) and via scripts/guard-no-release-merge.sh.
6262
# See AGENTS.md "Release PRs - Strong Guard" section.
6363

64-
- name: Strong guard - detect release-please PRs (autorelease: pending label)
64+
- name: 'Strong guard - detect release-please PRs (autorelease: pending label)'
6565
id: release-guard
6666
env:
6767
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)