mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Fix Unguarded actions library use code scanning error
Must access the env var directly in order to avoid recursive calls to `getRequiredEnvParam`.
This commit is contained in:
4
lib/util.js
generated
4
lib/util.js
generated
@@ -396,7 +396,9 @@ function getRequiredEnvParam(paramName) {
|
||||
if (value === undefined || value.length === 0) {
|
||||
throw new Error(`${paramName} environment variable must be set`);
|
||||
}
|
||||
core.debug(`${paramName}=${value}`);
|
||||
if (process.env[EnvVar.RUN_MODE] === Mode.actions) {
|
||||
core.debug(`${paramName}=${value}`);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
exports.getRequiredEnvParam = getRequiredEnvParam;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user