Skip to content

Conversation

@1seal
Copy link

@1seal 1seal commented Feb 2, 2026

summary
writeSecureFile currently defaults to 0o640, which makes created files group-readable. since this helper is used to write credential material (directly or via downstream actions), this changes the default to 0o600 while keeping the ability for callers to override mode explicitly.

changes

  • update writeSecureFile default mode to 0o600
  • update unit tests to assert the new default and keep coverage for custom mode
  • update generated docs/dist outputs accordingly

compatibility
this is a behavior change for callers that relied on the previous default group-readable permissions. those callers can restore the old behavior by passing mode: 0o640 explicitly.

testing

change writeSecureFile default mode from 0640 to 0600 (owner-only) and update tests/docs. callers can still override mode explicitly.
@1seal 1seal requested a review from a team as a code owner February 2, 2026 14:17
@1seal 1seal requested review from R2wenD2 and haroonc February 2, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant