Don't bypass the toolcache in test mode

This commit is contained in:
Henry Mercer 2022-08-16 14:12:04 +01:00
parent 5862bae77e
commit 96a8424f0c
56 changed files with 135 additions and 4 deletions

2
lib/util.js generated
View file

@ -644,7 +644,7 @@ exports.checkActionVersion = checkActionVersion;
* In test mode, we don't upload SARIF results or status reports to the GitHub API.
*/
function isInTestMode() {
return process.env["TEST_MODE"] === "true" || false;
return process.env["TEST_MODE"] === "true";
}
exports.isInTestMode = isInTestMode;
/**