Skip to content

Checkout yubihsm-shell from release tag #2892

Checkout yubihsm-shell from release tag

Checkout yubihsm-shell from release tag #2892

name: "CodeQL"
on:
push:
schedule:
- cron: '27 22 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
config-file: ./.github/codeql/codeql-config.yml
- name: Install dependencies from package management
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt -q update
sudo apt install -q -y
sudo apt install -q -y libssl-dev libcurl4-openssl-dev libusb-1.0-0-dev libedit-dev libpcsclite-dev gengetopt help2man
- name: Build project
run: |
mkdir build
cd build
cmake ..
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2