Skip to content

CodeQL Advanced

CodeQL Advanced #122

Workflow file for this run

name: "CodeQL Advanced"
on:
push:
pull_request:
schedule:
- cron: "17 2 * * *"
workflow_dispatch:
permissions:
actions: read
contents: read
packages: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
if: |
(github.event_name == 'push' && github.ref_name == ((vars.WORK_BRANCH != '' && vars.WORK_BRANCH) || 'main')) ||
(github.event_name == 'pull_request' && github.base_ref == ((vars.WORK_BRANCH != '' && vars.WORK_BRANCH) || 'main')) ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch'
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && ((vars.WORK_BRANCH != '' && vars.WORK_BRANCH) || 'main') || github.ref }}
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"