From 56d1ccc87a4a2034c5daeec44601f197fbaf4bda Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 24 Feb 2026 16:55:37 +0000 Subject: [PATCH] Change skipped reason message --- lib/init-action-post.js | 2 +- src/init-action-post-helper.test.ts | 2 +- src/init-action-post-helper.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/init-action-post.js b/lib/init-action-post.js index a3c5f17b8..c7cb2af50 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -169811,7 +169811,7 @@ async function tryUploadSarifIfRunFailed(config, repositoryNwo, features, logger ); } else { return { - upload_failed_run_skipped_because: "Code Scanning is not enabled." + upload_failed_run_skipped_because: "No analysis kind that supports failed SARIF uploads is enabled." }; } } catch (e) { diff --git a/src/init-action-post-helper.test.ts b/src/init-action-post-helper.test.ts index 645ec87d6..fac31423c 100644 --- a/src/init-action-post-helper.test.ts +++ b/src/init-action-post-helper.test.ts @@ -309,7 +309,7 @@ test("not uploading failed SARIF when `code-scanning` is not an enabled analysis }); t.is( result.upload_failed_run_skipped_because, - "Code Scanning is not enabled.", + "No analysis kind that supports failed SARIF uploads is enabled.", ); }); diff --git a/src/init-action-post-helper.ts b/src/init-action-post-helper.ts index 5c60961d9..76a14be11 100644 --- a/src/init-action-post-helper.ts +++ b/src/init-action-post-helper.ts @@ -159,7 +159,8 @@ export async function tryUploadSarifIfRunFailed( ); } else { return { - upload_failed_run_skipped_because: "Code Scanning is not enabled.", + upload_failed_run_skipped_because: + "No analysis kind that supports failed SARIF uploads is enabled.", }; } } catch (e) {