Use SPDX tags for copyright notice and the license #38
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 Analysis | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
packages: > | |
libcurl4-openssl-dev | |
libnotify-dev | |
- uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
- name: Create Build Environment | |
run: | | |
mkdir -p ${{ github.workspace }}/build | |
autoreconf --install | |
- name: Configure GNU Automake | |
working-directory: ${{ github.workspace }}/build | |
run: | | |
${{ github.workspace }}/configure \ | |
--enable-libnotify | |
- name: Build | |
working-directory: ${{ github.workspace }}/build | |
run: make | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |