Skip to content

Commit

Permalink
CI : add CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslepoix committed Nov 9, 2022
1 parent 20151f6 commit 6f3f58f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test_codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test CodeQL

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
run:
runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Init
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Analyze
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 6f3f58f

Please sign in to comment.