mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-07 17:44:28 +00:00
action: add option to configure updating trusted users
This commit is contained in:
parent
53fb48f556
commit
21e6bcccb0
3 changed files with 12 additions and 3 deletions
|
@ -34,8 +34,10 @@ add_config "max-jobs = auto"
|
|||
if [[ $OSTYPE =~ darwin ]]; then
|
||||
add_config "ssl-cert-file = /etc/ssl/cert.pem"
|
||||
fi
|
||||
# Allow binary caches for user
|
||||
add_config "trusted-users = root ${USER:-}"
|
||||
# Allow binary caches specified at user level
|
||||
if [[ $INPUT_SET_AS_TRUSTED_USER == 'true' ]]; then
|
||||
add_config "trusted-users = root ${USER:-}"
|
||||
fi
|
||||
# Add a GitHub access token.
|
||||
# Token-less access is subject to lower rate limits.
|
||||
if [[ -n "${INPUT_GITHUB_ACCESS_TOKEN:-}" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue