Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aeisenberg committed Jul 21, 2020
1 parent c54a88c commit 3966be4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ The configuration file must be located within the local repository. For informat
It is possible to run this action locally via [act](https://github.com/nektos/act) via the following steps:

1. Create a GitHub [Personal Access Token](https://github.com/settings/tokens) (PAT).
1. Install [`act`](https://github.com/nektos/act).
1. In the workflow whose action you want to run, add `CODEQL_LOCAL_RUN: true` to an `env` block. It should look like this:

```yaml
jobs:
codeql:
env:
CODEQL_LOCAL_RUN: true
1. Install [act](https://github.com/nektos/act) v0.2.10 or greater.
1. Add a `.env` file in the root of the project you are running:

```bash
CODEQL_LOCAL_RUN=true
# Optional, for better logging
GITHUB_JOB=<ANY_JOB_NAME>
```

1. Run `act -j codeql -s GITHUB_TOKEN=<PAT>`
Expand Down

0 comments on commit 3966be4

Please sign in to comment.