From 532ca5486e1a5b4520f54d6aac5918e20eaf2149 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Mon, 11 Mar 2024 06:57:49 -0700 Subject: [PATCH] Fail `analyze` step by passing an invalid option to `database finalize` (#2189) 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