Skip to content

Move "repository" dispatch message #3688

Move "repository" dispatch message

Move "repository" dispatch message #3688

Workflow file for this run

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/checkout@v4.1.1
with:
fetch-depth: 2
- name: 🔁 Initialize CodeQL
uses: github/codeql-action/init@v2.22.7
with:
languages: python
- name: 🛠️ Autobuild
uses: github/codeql-action/autobuild@v2.22.7
- name: 🏃 Run CodeQL Analysis
uses: github/codeql-action/analyze@v2.22.7
- 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 }}