-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
summary
writeSecureFile in @google-github-actions/actions-utils currently defaults to mode: 0o640 (group-readable). the function is commonly used to write credential material (for example by google-github-actions/auth), so the safer default is owner-only (0o600) while still allowing callers to opt into broader permissions explicitly.
why this matters
on self-hosted runners and other shared hosts, group membership and shared filesystems are common. when a credential file is created with group-read permissions, another process/user in the same group can read the credential material.
proposed change
- change the default mode in
writeSecureFilefrom0o640to0o600 - keep
options.modeoverride behavior unchanged
notes
- this is a secure-by-default hardening change; callers that want group-readable files can continue to pass a custom
mode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels