ntopng/.github/workflows/codeql.yml
lgtm-com[bot] 5c33f4ffcd
Add CodeQL workflow for GitHub code scanning (#6978)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
2022-11-27 17:28:19 +00:00

42 lines
940 B
YAML

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