Skip to content

Commit b42c6f2

Browse files
committed
Tolerate forks of github/codeql-action
1 parent a3e3d95 commit b42c6f2

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/workflow.js

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

lib/workflow.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.

src/workflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ function getInputOrThrow(
389389
* This allows us to test workflow parsing functionality as a CodeQL Action PR check.
390390
*/
391391
function getAnalyzeActionName() {
392-
if (getRequiredEnvParam("GITHUB_REPOSITORY") === "github/codeql-action") {
392+
if (getRequiredEnvParam("GITHUB_REPOSITORY") === "github/codeql-action" ||
393+
fs.existsSync("pr-checks/checks/test-local-codeql.yml")) {
393394
return "./analyze";
394395
} else {
395396
return "github/codeql-action/analyze";

0 commit comments

Comments
 (0)