2021-06-02 18:34:55 +02:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-30 21:09:38 +02:00
|
|
|
branches: [ main, release-** ]
|
2021-06-02 18:34:55 +02:00
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
2021-10-01 16:24:21 +02:00
|
|
|
branches: [ main, release-** ]
|
2021-06-02 18:34:55 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '30 4 * * 0'
|
2022-10-18 13:22:00 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
2021-06-02 18:34:55 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
2022-10-18 13:22:00 +02:00
|
|
|
permissions:
|
|
|
|
security-events: write # for github/codeql-action/autobuild to send a status report
|
2021-06-02 18:34:55 +02:00
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'go', 'javascript' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-10-18 13:22:00 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-06-02 18:34:55 +02:00
|
|
|
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
- name: Initialize CodeQL
|
2022-04-20 03:18:47 +02:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-06-02 18:34:55 +02:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2022-10-18 13:22:00 +02:00
|
|
|
debug: false
|
|
|
|
config-file: ./.github/codeql/codeql-config.yml
|
|
|
|
|
|
|
|
# Autobuild attempts to build any compiled languages
|
2021-06-02 18:34:55 +02:00
|
|
|
- name: Autobuild
|
2022-10-18 13:22:00 +02:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-06-02 18:34:55 +02:00
|
|
|
|
2022-10-18 13:22:00 +02:00
|
|
|
# Perform Analysis
|
2021-06-02 18:34:55 +02:00
|
|
|
- name: Perform CodeQL Analysis
|
2022-10-18 13:22:00 +02:00
|
|
|
uses: github/codeql-action/analyze@v2
|