Add a GitHub Actions secret to a repositorySource:
Encrypts the supplied value using
libsodium and adds it as a
secret to the given GitHub repository. Secrets can be be used in GitHub
Action runs as environment variables.
A common use case is to encrypt Personal Access Tokens (PAT) or API keys.
This is the same as adding a secret manually in GitHub via
"Settings" -> "Secrets" -> "New repository secret"
gha_add_secret( secret, name, repo_slug = NULL, remote = "origin", visibility = "all", selected_repositories = NULL )
The value which should be encrypted (e.g. a Personal Access Token).
The name of the secret as which it will appear in the "Secrets" overview of the repository.
Repository slug of the repository to which the secret should be added. Must follow the form
repo_slug = NULL, the
repo_slugis determined by the respective git remote.
The level of visibility for the secret. One of
"selected". See https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret for more information.
Vector of repository ids for which the secret is accessible. Only applies if
visibility = "selected"was set.