mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 20:20:07 +08:00
Factor out test mode determination code
This commit is contained in:
@@ -742,3 +742,12 @@ export async function checkActionVersion(version: string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns whether we are in test mode.
|
||||
*
|
||||
* In test mode, we don't upload SARIF results or status reports to the GitHub API.
|
||||
*/
|
||||
export function isInTestMode(): boolean {
|
||||
return process.env["TEST_MODE"] === "true" || false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user