Configure GitHub's CodeQL feature

This commit is contained in:
Krzysztof Sikorski 2024-02-15 00:45:34 +01:00
parent 8e4254b985
commit 1a6b1edd26
Signed by: krzysztof-sikorski
GPG key ID: 4EB564BD08FE8476
2 changed files with 42 additions and 0 deletions

7
.github/codeql/codeql-config.yml vendored Normal file
View file

@ -0,0 +1,7 @@
name: "Quintolin CodeQL config"
queries:
- uses: security-extended
- uses: security-and-quality
paths-ignore:
- doc
- legacy

35
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: "CodeQL"
on:
push:
pull_request:
schedule:
- cron: '42 7 * * 2' # value suggested by GitHub UI
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"