create-pull-request-action: mask the base64 Basic auth header #8

Merged
stephen merged 1 commit from fix/create-pr-mask-basic-header into main 2026-06-30 14:50:01 +00:00
Owner

Why

src/main.js base64-encodes forgejo-actions:<token> into the Authorization: Basic extraheader but only masked the raw/url-encoded token, so the base64 credential could leak via any git error echoing the header.

What

core.setSecret the base64 Basic value before use.

Testing

Test asserts the encoded value is masked. Backlog rank 8.

## Why `src/main.js` base64-encodes `forgejo-actions:<token>` into the `Authorization: Basic` extraheader but only masked the raw/url-encoded token, so the base64 credential could leak via any git error echoing the header. ## What `core.setSecret` the base64 Basic value before use. ## Testing Test asserts the encoded value is masked. Backlog rank 8.
fix: mask git basic auth header
All checks were successful
test / unit (pull_request) Successful in 10s
f0c4b10f67
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/create-pull-request-action!8
No description provided.