Skip to content

Commit

Permalink
github: Add CodeQL workflow
Browse files Browse the repository at this point in the history
Add CodeQL workflow to get some code analysis.

Signed-off-by: Bjorn Andersson <[email protected]>
  • Loading branch information
quic-bjorande authored and Konrad Dybcio committed May 10, 2024
1 parent 0132a8e commit ba6b6e5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CodeQL

on:
pull_request:
push:

jobs:
codeql:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxml2-dev libusb-1.0-0-dev
- name: CodeQL init
uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: autobuild

- name: CodeQL build
uses: github/codeql-action/autobuild@v3

- name: CodeQL analysis
uses: github/codeql-action/analyze@v3

0 comments on commit ba6b6e5

Please sign in to comment.