summaryrefslogtreecommitdiff
path: root/external/bsd/pam-u2f/dist/.github/workflows/codeql-analysis.yml
blob: 3d00a7f78f89997cdf7d9e3acf500be0ab1720e8 (plain)
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
name: "Code scanning - action"

on:
  push:
  pull_request:
  schedule:
    - cron: '0 8 * * 6'

jobs:
  CodeQL-Build:

    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    # Initializes the CodeQL tools for scanning.
    - name: Initialize CodeQL
      uses: github/codeql-action/init@v1

    - name: Build project
      run: |
        sudo apt -q update
        sudo apt install -y libpam-dev asciidoc autoconf automake libtool \
          software-properties-common libssl-dev pkg-config gengetopt
        sudo apt-add-repository -u -y ppa:yubico/stable
        sudo apt install -y libfido2-dev
        ./autogen.sh
        ./configure --disable-man
        make

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v1