Skip to content

CodeQL

CodeQL #210

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "48 17 * * 3"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ cpp ]
steps:
- name: Checkout LPrint
uses: actions/checkout@v4
- name: Update Build Environment
run: sudo apt-get update --fix-missing -y
- name: Install Prerequisites
run: sudo apt-get install -y avahi-daemon cppcheck libavahi-client-dev libjpeg-dev libpam-dev libpng-dev libssl-dev libusb-1.0-0-dev zlib1g-dev
- name: Checkout libcups3
uses: actions/checkout@v4
with:
repository: OpenPrinting/libcups
path: libcups
submodules: recursive
- name: Configure libcups3
run: cd libcups; ./configure --enable-debug --disable-shared
- name: Build/Install libcups3
run: cd libcups; make && sudo make install
- name: Checkout PAPPL
uses: actions/checkout@v4
with:
repository: michaelrsweet/pappl
ref: v1.4.x
path: pappl
submodules: recursive
- name: Configure PAPPL
run: cd pappl; ./configure --enable-debug --disable-shared
- name: Build/Install PAPPL
run: cd pappl; make && sudo make install
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"