fix: use YAML block scalar for wget command to fix colon parsing #206
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api!206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "226-fix-yaml-syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
PR #204 introduced an
update-kustomize-tagstep with a multi-line wget command containing--header="Authorization: token ...". The unquoted colon was interpreted by YAML as a mapping separator, breaking pipeline parsing entirely.Changes
.woodpecker.yaml: Wrapped the wget command in a>-folded block scalar so the colon inside the Authorization header stays within a proper string context.Test Plan
python3 -c "import yaml; yaml.safe_load(open('.woodpecker.yaml')); print('OK')"-- passesReview Checklist
Related Notes
basketball-api-- the project this work belongs toQA Review -- PR #206
Diff Summary
.woodpecker.yaml>-folded block scalarFindings
Correctness: Verified the
>-block scalar produces the correct single-line command:All arguments are joined with spaces as expected. No trailing newline (due to
-strip indicator).YAML validity: Confirmed with
python3 -c "import yaml; yaml.safe_load(open('.woodpecker.yaml')); print('OK')"-- passes.Root cause: The previous format had bare indented continuation lines with an unquoted colon in
Authorization: token, which YAML parsed as a mapping key rather than a string continuation.No regressions: Second command (
sh /tmp/update-kustomize-tag.sh) unchanged. All other steps untouched.SOP compliance: PR body has all required sections (Summary, Changes, Test Plan, Review Checklist, Related Notes).
Closes #226present for auto-close.Nits
None.
VERDICT: APPROVE