mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 07:00:27 +00:00
Add note about unset
This commit is contained in:
2
main.sh
2
main.sh
@@ -494,6 +494,8 @@ token="${GITHUB_TOKEN:-"${GH_TOKEN:-"${DEFAULT_GITHUB_TOKEN:-}"}"}"
|
|||||||
# This prevents tokens from being exposed to subprocesses via environment variables.
|
# This prevents tokens from being exposed to subprocesses via environment variables.
|
||||||
# Since the tokens remain in memory, setting `fallback: none` (which prevents the tokens from being
|
# Since the tokens remain in memory, setting `fallback: none` (which prevents the tokens from being
|
||||||
# set in the first place) remains the best practice from a security standpoint, as readme says.
|
# set in the first place) remains the best practice from a security standpoint, as readme says.
|
||||||
|
# Note that this does not prevent token leaks via reading `/proc/*/environ` on Linux or
|
||||||
|
# via `ps -Eww` on macOS. It only reduces the risk of leaks.
|
||||||
unset GITHUB_TOKEN GH_TOKEN DEFAULT_GITHUB_TOKEN
|
unset GITHUB_TOKEN GH_TOKEN DEFAULT_GITHUB_TOKEN
|
||||||
|
|
||||||
# Refs: https://github.com/rust-lang/rustup/blob/HEAD/rustup-init.sh
|
# Refs: https://github.com/rust-lang/rustup/blob/HEAD/rustup-init.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user