Skip to content

Fix startup race (#3612) #4091

Fix startup race (#3612)

Fix startup race (#3612) #4091

name: "CodeQL"
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 4 * * *'
concurrency:
group: code-analysis-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: 📥 Checkout the repository
uses: actions/[email protected]
with:
fetch-depth: 2
- name: 🔁 Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: python
- name: 🛠️ Autobuild
uses: github/codeql-action/[email protected]
- name: 🏃 Run CodeQL Analysis
uses: github/codeql-action/[email protected]
- name: 📨 Discord notification
if: ${{ github.event_name == 'schedule' && failure() }}
run: |
curl \
-H "Content-Type: application/json" \
-d '{"username": "GitHub action failure", "content": "[Scheduled action failed!](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})"}' \
${{ secrets.DISCORD_WEBHOOK_ACTION_FAILURE }}