1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Update CodeQL script

This commit is contained in:
Frank Denis 2023-11-01 12:20:31 +01:00
parent 81aed0e45d
commit 72932a768f

View File

@ -2,29 +2,45 @@ name: "CodeQL scan"
on: on:
push: push:
branches: [ "master stable next" ]
pull_request: pull_request:
# The branches below must be a subset of the branches above
branches: [ "master stable next" ]
schedule: schedule:
- cron: "0 17 * * 2" - cron: '0 17 * * 2'
jobs: jobs:
CodeQL-Build: analyze:
runs-on: ubuntu-latest name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'c-cpp' ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Initialize CodeQL # Initializes the CodeQL tools for scanning.
uses: github/codeql-action/init@v2 - name: Initialize CodeQL
with: uses: github/codeql-action/init@v2
languages: cpp with:
languages: ${{ matrix.language }}
- run: | - run: |
./autogen.sh -s echo "Run, Build Application using script"
env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking ./autogen.sh -s
make -j $(nproc) check env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking
make -j $(nproc) check
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"