Update CodeQL workflow to v4 and replace deprecated LGTM badges (#1079)

* Add CodeQL workflow and replace deprecated LGTM badges
This commit is contained in:
Anthony Hernandez
2026-01-20 11:54:29 +01:00
committed by GitHub
parent 83d84d1e27
commit 70d7a3e0bf
2 changed files with 42 additions and 2 deletions

39
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: "CodeQL"
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
schedule:
- cron: '30 1 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4