Check for upload-sarif-post in isFirstPartyAnalysis

This commit is contained in:
Michael B. Gale
2026-10-22 15:01:48 +01:00
parent 45c4bd29e5
commit 0806687bf6
2 changed files with 5 additions and 2 deletions

2
lib/entry-points.js generated
View File

@@ -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";

View File

@@ -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";