forked from mgumz/alock
-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (58 loc) · 1.51 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CodeQL Analysis
on:
push:
pull_request:
branches: [ master ]
jobs:
analyze:
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
language: [ 'cpp' ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install --yes --quiet --no-install-recommends \
libcrypt-dev \
libgcrypt20-dev \
libimlib2-dev \
libpam0g-dev \
libx11-dev \
libxcursor-dev \
libxext-dev \
libxpm-dev \
libxrender-dev
- uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/{build,m4}
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure \
--enable-pam \
--enable-passwd \
--enable-hash \
--enable-xrender \
--enable-xcursor \
--enable-xpm \
--enable-imlib2 \
--with-dunst \
--with-xbacklight
- name: Build
working-directory: ${{ github.workspace }}/build
run: make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1