2022-01-20 05:37:48 +01:00
|
|
|
name: "CodeQL"
|
|
|
|
|
2022-01-20 06:38:54 +01:00
|
|
|
permissions: read-all
|
|
|
|
|
2022-01-20 05:37:48 +01:00
|
|
|
on:
|
|
|
|
push:
|
2022-08-12 06:17:38 +02:00
|
|
|
branches: [ main ]
|
2022-01-20 05:37:48 +01:00
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
2022-08-12 06:17:38 +02:00
|
|
|
branches: [ main ]
|
2022-01-20 05:37:48 +01:00
|
|
|
schedule:
|
|
|
|
- cron: '45 22 * * 3'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'go', 'javascript' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-05 00:35:18 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-01-20 05:37:48 +01:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-08-09 07:40:41 +02:00
|
|
|
uses: github/codeql-action/init@v2
|
2022-01-20 05:37:48 +01:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2022-08-09 07:40:41 +02:00
|
|
|
config-file: ./.github/codeql/config.yml
|
2022-01-20 05:37:48 +01:00
|
|
|
|
|
|
|
- name: Autobuild
|
2022-08-09 07:40:41 +02:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2022-01-20 05:37:48 +01:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-08-09 07:40:41 +02:00
|
|
|
uses: github/codeql-action/analyze@v2
|