From d7fca36076e3439063bf0b92e149afa956cf092f Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Fri, 8 Mar 2024 13:32:36 -0500 Subject: [PATCH] Fail `analyze` step by passing an invalid option to `database finalize` As the `ram: 1` trick won't work anymore with updates to the CLI. --- .github/workflows/debug-artifacts-failure.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/debug-artifacts-failure.yml b/.github/workflows/debug-artifacts-failure.yml index 1cce35f68e..fe15737853 100644 --- a/.github/workflows/debug-artifacts-failure.yml +++ b/.github/workflows/debug-artifacts-failure.yml @@ -50,9 +50,11 @@ jobs: run: ./build.sh - uses: ./../action/analyze id: analysis + env: + # Forces a failure in this step. + CODEQL_ACTION_EXTRA_OPTIONS: '{ "database": { "finalize": ["--invalid-option"] } }' with: expect-error: true - ram: 1 download-and-check-artifacts: name: Download and check debug artifacts after failure in analyze needs: upload-artifacts