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:
@@ -466,7 +466,10 @@ export function getRequiredEnvParam(paramName: string): string {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user