Skip to content

Commit

Permalink
Update codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Oct 12, 2023
1 parent c5728d5 commit 8f3871b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- '**/CMakeLists.txt'
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
Expand All @@ -22,6 +25,10 @@ jobs:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'c-cpp' ]

steps:
- name: Install packages
Expand All @@ -36,7 +43,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
languages: ${{ matrix.language }}
queries: security-and-quality

- name: Create build folder
Expand All @@ -50,3 +57,5 @@ jobs:

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

0 comments on commit 8f3871b

Please sign in to comment.