Githubactions: Update workflows #2398
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
pull_request: | |
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 |