doc: add --secret-file example (#395)

This commit is contained in:
jmmendivil 2020-10-17 09:38:53 -05:00 committed by GitHub
parent 644bc2b635
commit 4791a9bc44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -139,10 +139,11 @@ act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04
# Secrets
To run `act` with secrets, you can enter them interactively or supply them as environment variables. The following options are available for providing secrets:
To run `act` with secrets, you can enter them interactively, supply them as environment variables or load them from a file. The following options are available for providing secrets:
- `act -s MY_SECRET=somevalue` - use `somevalue` as the value for `MY_SECRET`.
- `act -s MY_SECRET` - check for an environment variable named `MY_SECRET` and use it if it exists. If the environment variable is not defined, prompt the user for a value.
- `act --secret-file my.secrets` - load secrets values from `my.secrets` file.
# Configuration