mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 02:18:47 +00:00
12 lines
435 B
JavaScript
12 lines
435 B
JavaScript
// Post step - runs after the workflow completes, when artifact scan has finished
|
|
const process = require("process");
|
|
|
|
const scanFinished = process.env.CODEQL_ACTION_ARTIFACT_SCAN_FINISHED;
|
|
|
|
if (scanFinished !== "true") {
|
|
console.error("Error: Best-effort artifact scan did not complete. Expected CODEQL_ACTION_ARTIFACT_SCAN_FINISHED=true");
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log("✓ Best-effort artifact scan completed successfully");
|