create-pull-request-action: mask the base64 Basic auth header #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/create-pr-mask-basic-header"
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?
Why
src/main.jsbase64-encodesforgejo-actions:<token>into theAuthorization: Basicextraheader but only masked the raw/url-encoded token, so the base64 credential could leak via any git error echoing the header.What
core.setSecretthe base64 Basic value before use.Testing
Test asserts the encoded value is masked. Backlog rank 8.