32 lines
890 B
YAML
32 lines
890 B
YAML
name: CodeQL Analysis
|
|
|
|
on:
|
|
schedule:
|
|
# Weekly on Saturdays.
|
|
- cron: "30 1 * * 6"
|
|
workflow_call:
|
|
|
|
jobs:
|
|
code-security:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ["python", "javascript"]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@689fdc5193eeb735ecb2e52e819e3382876f93f4 # v2.22.6
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
config-file: ./.github/codeql.yml
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@689fdc5193eeb735ecb2e52e819e3382876f93f4 # v2.22.6
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|