From 7567eab606146703f30b3f80cf5b7168cbbc49d8 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Mon, 24 Feb 2025 13:17:24 -0800 Subject: [PATCH] Fail when expected config does not exist --- .github/actions/check-codescanning-config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/check-codescanning-config/index.ts b/.github/actions/check-codescanning-config/index.ts index 196b1ad04..0596e4fe9 100644 --- a/.github/actions/check-codescanning-config/index.ts +++ b/.github/actions/check-codescanning-config/index.ts @@ -8,7 +8,7 @@ const actualConfig = loadActualConfig() const rawExpectedConfig = process.argv[3].trim() if (!rawExpectedConfig) { - core.info('No expected configuration provided') + core.setFailed('No expected configuration provided') } else { core.startGroup('Expected generated user config') core.info(yaml.dump(JSON.parse(rawExpectedConfig)))