[ci] Run codeql alerts after analyze matrix (#193217)

Instead of alerting as each branch finishes, this waits for the entire
analyze run before sending out alerts.
This commit is contained in:
Jon 2024-09-17 17:24:45 -05:00 committed by GitHub
parent c12c361f56
commit d58e82272a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,12 @@ jobs:
category: "/language:${{matrix.language}}"
ref: ${{ env.CHECKOUT_REF }}
sha: ${{ env.CHECKOUT_SHA }}
alert:
name: Alert
runs-on: ubuntu-latest
needs: analyze
if: github.repository == 'elastic/kibana' # Hack: Do not run on forks
steps:
- name: Checkout kibana-operations
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with: