Skip to content

Commit d762ef8

Browse files
committed
ci: add aggregating all-checks job to CodeQL workflow
1 parent 0e3b486 commit d762ef8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,18 @@ jobs:
5252
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
5353
with:
5454
category: /language:${{ matrix.language }}
55+
56+
# One required check for branch protection to point at.
57+
all-checks:
58+
if: always()
59+
needs: [analyze]
60+
runs-on: ubuntu-latest
61+
timeout-minutes: 5
62+
steps:
63+
- name: Fail if any check did not succeed
64+
run: |
65+
if [ "${{ needs.analyze.result }}" != "success" ]; then
66+
echo "analyze=${{ needs.analyze.result }}"
67+
exit 1
68+
fi
69+
echo "all checks passed"

0 commit comments

Comments
 (0)