fix(ci): write Cloud config to 0600 temp file with cleanup trap - #536
Conversation
✅MegaLinter analysis: Success
Notices📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining See detailed reports in MegaLinter artifacts MegaLinter is graciously provided by OX Security |
|
The fix looks correct and is a genuine security improvement. A few real issues worth flagging: Bug: The script is sourced (uses Minor but real: If set -o pipefail
printf '%s' "$EC_API_KEY" | node -e '...' > "$CI_CONFIG_FILE"Mild concern: Using The core fix is sound: temp dir at 0700, file at 0600, |
Closes #519.