1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Add CodeQL workflow for GitHub code scanning

This commit is contained in:
LGTM Migrator 2022-11-16 15:16:30 +00:00
parent ec6d5ac6d5
commit 0b7e39c92a
No known key found for this signature in database
GPG key ID: BA13048118AA6D75
2 changed files with 48 additions and 0 deletions

5
.github/codeql.yml vendored Normal file
View file

@ -0,0 +1,5 @@
query-filters:
- exclude:
id: cpp/short-global-name
- exclude:
id: cpp/useless-expression

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

@ -0,0 +1,43 @@
name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "15 19 * * 6"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ javascript, cpp ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql.yml
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language == 'javascript' || matrix.language == 'cpp' }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"