-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (39 loc) · 1015 Bytes
/
codeql-analysis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CodeQL Analysis
on:
push:
pull_request:
branches: [ master ]
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
libcurl4-openssl-dev
libnotify-dev
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: security-and-quality
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/build
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure \
--enable-libnotify
- name: Build
working-directory: ${{ github.workspace }}/build
run: make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3