Skip to content

Commit

Permalink
Merge pull request #309 from jelu/gh-workflow
Browse files Browse the repository at this point in the history
Workflow
  • Loading branch information
jelu authored Apr 25, 2024
2 parents 611c98a + b4a9171 commit 0fc7c84
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
push:
branches: [ "develop", "master" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: "53 18 * * 4"

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
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Packages (cpp)
run: |
sudo add-apt-repository --yes ppa:dns-oarc/dsc-pr
sudo apt-get update
sudo apt-get install --yes libpcap-dev libgeoip-dev libmaxminddb-dev libdnswire-dev libuv1-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

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

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

0 comments on commit 0fc7c84

Please sign in to comment.