fix: add auth header to wget for private repo download #235
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/pal-e-api!235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "226-fix-wget-auth"
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
The
update-kustomize-tagCI step downloadsupdate-kustomize-tag.shfrom the privatepal-e-platformrepo via wget, but the request had no authentication, resulting in a 404. This adds anAuthorization: tokenheader using the existingFORGEJO_TOKENsecret already available in the step's environment.Changes
.woodpecker.yaml: Added--header="Authorization: token ${FORGEJO_TOKEN}"to the wget command in theupdate-kustomize-tagstepTest Plan
mainpush pipeline'supdate-kustomize-tagstep succeeds instead of 404ingReview Checklist
Related Notes
pal-e-docs— the project this work belongs toQA Review — PR #235
Scope: 1 file, +1 line, -0 lines. CI-only fix.
Diff Check
--header="Authorization: token ${FORGEJO_TOKEN}"flag is correctly placed as a continuation line in the multi-line wget commandFORGEJO_TOKENis already declared in the step'senvironmentblock (line 88-89, sourced fromforgejo_tokensecret) — no new secrets or config needed-Oand the URL is validSOP Compliance
Closes forgejo_admin/pal-e-platform#226present for cross-repo auto-closeNits
None.
VERDICT: APPROVE — Clean 1-line fix. The auth header uses the existing secret already available in the step environment.