Skip to content

Commit

Permalink
Add CodeQL analysis using GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck committed Jun 27, 2023
1 parent bd89016 commit 0cdb554
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CodeQL analysis

on:
push:
pull_request:
schedule:
# build the master branch every Monday morning
- cron: '4 6 * * 1'
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build Application using script
run: |
./bootstrap.sh
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 0cdb554

Please sign in to comment.