Skip to content

Commit cbdf0df

Browse files
authored
Merge pull request #539 from github/aeisenberg/env-vars
Add environment variables to signal feature and version to the CLI
2 parents 1ec2fd7 + f60ef17 commit cbdf0df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+354
-441
lines changed

CONTRIBUTING.md

-20
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,6 @@ Only run `npm install` if you are explicitly changing the set of dependencies in
3434

3535
To see the effect of your changes and to test them, push your changes in a branch and then look at the [Actions output](https://github.com/github/codeql-action/actions) for that branch. You can also exercise the code locally by running the automated tests.
3636

37-
### Running the action locally
38-
39-
It is possible to run this action locally via [act](https://github.com/nektos/act) via the following steps:
40-
41-
1. Create a GitHub [Personal Access Token](https://github.com/settings/tokens) (PAT).
42-
1. Install [act](https://github.com/nektos/act) v0.2.10 or greater.
43-
1. Add a `.env` file in the root of the project you are running:
44-
45-
```bash
46-
CODEQL_LOCAL_RUN=true
47-
GITHUB_SERVER_URL=https://github.com
48-
49-
# Optional, for better logging
50-
GITHUB_JOB=<ANY_JOB_NAME>
51-
```
52-
53-
1. Run `act -j codeql -s GITHUB_TOKEN=<PAT>`
54-
55-
Running locally will generate the CodeQL database and run all the queries, but it will avoid uploading and reporting results to GitHub. Note that this must be done on a repository that _consumes_ this action, not this repository. The use case is to debug failures of this action on specific repositories.
56-
5737
### Integration tests
5838

5939
As well as the unit tests (see _Common tasks_ above), there are integration tests, defined in `.github/workflows/integration-testing.yml`. These are run by a CI check. Depending on the change you’re making, you may want to add a test to this file or extend an existing one.

lib/actions-util.js

+17-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)