mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 09:37:15 +00:00
Fix undefined environment
This commit is contained in:
@@ -439,7 +439,7 @@ export function computeAutomationID(
|
||||
let automationID = `${analysis_key}/`;
|
||||
|
||||
// the id has to be deterministic so we sort the fields
|
||||
if (environment) {
|
||||
if (environment !== undefined && environment !== "null") {
|
||||
const environmentObject = JSON.parse(environment);
|
||||
for (const entry of Object.entries(environmentObject).sort()) {
|
||||
if (typeof entry[1] === "string") {
|
||||
|
||||
Reference in New Issue
Block a user