Skip to content

Commit

Permalink
Merge pull request #66 from maxheld83/patch-2
Browse files Browse the repository at this point in the history
explain how to run act with secrets
  • Loading branch information
cplee committed May 23, 2019
2 parents 7669988 + cb6bfde commit ba26bd7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -49,6 +49,17 @@ act -r
act -v
```

# Secrets

To run `act` with secrets, you can enter them interactively or supply them as environment variables.
If you have a secret called `FOO` in your `main.workflow`, `act` will take whatever you have set as `FOO` in the session from which you are running `act`.
If `FOO` is unset, it will ask you interactively.

You can set environment variables for the current session by running `export FOO="zap"`, or globally in your `.profile`.
You can also set environment variables *per directory* using a tool such as [direnv](https://direnv.net/).
**Be careful not to expose secrets**:
You may want to `.gitignore` any files or folders containing secrets, and/or encrypt secrets.

# Skip Actions When Run in `act`

You may sometimes want to skip some actions when you're running a `main.workflow` in act, such as deployment.
Expand Down

0 comments on commit ba26bd7

Please sign in to comment.