From 1057df997dd63a46acb2678999fe34e17bdf21b2 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 16 Aug 2021 15:40:06 +0200 Subject: [PATCH] Trying to prevent unnecessary CodeQL errors for contributors (#10867) --- .github/workflows/codeql-analysis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4dfa5a83b9..0335c08e5d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,5 +57,12 @@ jobs: uses: github/codeql-action/analyze@v1 with: config-file: ./.github/codeql-config.yml - + + # This job is to prevent the workflow status from showing as failed when all other jobs are skipped - See https://github.community/t/workflow-is-failing-if-no-job-can-be-ran-due-to-condition/16873 + always_job: + name: Always run job + runs-on: ubuntu-latest + steps: + - name: Always run + run: echo "This job is to prevent the workflow status from showing as failed when all other jobs are skipped"