From 0806687bf655e78e55b8950db28bab3b4c704541 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Thu, 22 Oct 2026 15:01:48 +0100 Subject: [PATCH] Check for `upload-sarif-post` in `isFirstPartyAnalysis` --- lib/entry-points.js | 2 +- src/status-report.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/entry-points.js b/lib/entry-points.js index 2f5cc50fc..a181f50a3 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -171470,7 +171470,7 @@ function getJobUUID(action) { return jobRunUuid; } function isFirstPartyAnalysis(actionName) { - if (actionName !== "upload-sarif" /* UploadSarif */) { + if (actionName !== "upload-sarif" /* UploadSarif */ && actionName !== "upload-sarif-post" /* UploadSarifPost */) { return true; } return process.env["CODEQL_ACTION_INIT_HAS_RUN" /* INIT_ACTION_HAS_RUN */] === "true"; diff --git a/src/status-report.ts b/src/status-report.ts index 9d831dd78..e80daae11 100644 --- a/src/status-report.ts +++ b/src/status-report.ts @@ -120,7 +120,10 @@ export function getJobUUID(action: ActionState<["Logger", "Env", "Actions"]>) { * misconfigured workflows are not treated as third party, only the upload-sarif action can return false. */ function isFirstPartyAnalysis(actionName: ActionName): boolean { - if (actionName !== ActionName.UploadSarif) { + if ( + actionName !== ActionName.UploadSarif && + actionName !== ActionName.UploadSarifPost + ) { return true; } return process.env[EnvVar.INIT_ACTION_HAS_RUN] === "true";