Skip to content

Commit

Permalink
feat: Add a job that checks that all CodeQL analysis passed to enable…
Browse files Browse the repository at this point in the history
… easier Required Status Checks
  • Loading branch information
nfelt14 committed Aug 27, 2024
1 parent 5c6435c commit 17c305b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/_reusable-codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: /language:${{matrix.language}}
# Check that all jobs passed
check-codeql-passed:
if: ${{ !cancelled() }}
needs: [analyze]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 17c305b

Please sign in to comment.