Skip to content

Commit 5c0e2f9

Browse files
author
Simon Engledew
committed
Fix invalid API call when running locally
The method getAnalysisKey would call getWorkflowPath and raise an API Error. This change follows the pattern in prepareLocalRunEnvironment to set a dummy value for the required environment variable, therefore shortcutting the API request.
1 parent bc1ee16 commit 5c0e2f9

File tree

7 files changed

+61
-2
lines changed

7 files changed

+61
-2
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ It is possible to run this action locally via [act](https://github.com/nektos/ac
3636

3737
```bash
3838
CODEQL_LOCAL_RUN=true
39+
GITHUB_SERVER_URL=https://github.com
3940

4041
# Optional, for better logging
4142
GITHUB_JOB=<ANY_JOB_NAME>

lib/actions-util.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.test.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)