bin/xbps-query: improve argument parsing #354
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: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: '0 0 * * 0' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
container: | |
image: ghcr.io/void-linux/void-glibc-full:20240526R1 | |
steps: | |
- name: Prepare container | |
run: | | |
xbps-install -Syu xbps | |
xbps-install -yu | |
# node-based actions require libstdc++.so.6 | |
# codeql runs some bash scripts | |
xbps-install -Sy \ | |
libstdc++ bash git \ | |
gcc make pkg-config zlib-devel openssl-devel libarchive-devel | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- run: git config --global --add safe.directory $(pwd) | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
config-file: ./.github/codeql/codeql-config.yaml | |
- name: Build xbps | |
run: | | |
./configure | |
make -j | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:cpp" |