Tolerate forks of github/codeql-action

This commit is contained in:
Josh Soref 2023-05-22 23:58:26 -04:00
parent dba4f66682
commit a5879b7b6e
3 changed files with 10 additions and 4 deletions

4
lib/workflow.js generated
View file

@ -298,7 +298,9 @@ function getInputOrThrow(workflow, jobName, actionName, inputName, matrixVars) {
* This allows us to test workflow parsing functionality as a CodeQL Action PR check.
*/
function getAnalyzeActionName() {
if ((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY") === "github/codeql-action") {
if ((0, util_1.isInTestMode)() ||
process.env["CODEQL_ACTION_TESTING_ENVIRONMENT"] ===
"codeql-action-pr-checks") {
return "./analyze";
}
else {

File diff suppressed because one or more lines are too long