Skip to content

Commit

Permalink
Create codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 30, 2024
1 parent fc93bc0 commit 3de0c89
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '41 4 * * 2'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: 'ubuntu-20.04'
strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Install packages
run: |
sudo apt update
sudo apt-get install -y \
autoconf \
build-essential \
gperf \
check \
help2man \
- name: Build
run: |
./autogen.sh
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit 3de0c89

Please sign in to comment.