mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Sync dotnet-core.yml
This commit is contained in:
parent
8dd8ca1953
commit
09675b4876
26
.github/workflows/codeql-analysis.yml
vendored
26
.github/workflows/codeql-analysis.yml
vendored
@ -2,13 +2,27 @@ name: "CodeQL scan"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master stable next" ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "master stable next" ]
|
||||
schedule:
|
||||
- cron: "0 17 * * 2"
|
||||
- cron: '0 17 * * 2'
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
runs-on: ubuntu-latest
|
||||
analyze:
|
||||
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:
|
||||
- name: Checkout repository
|
||||
@ -16,15 +30,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: cpp
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- run: |
|
||||
echo "Run, Build Application using script"
|
||||
./autogen.sh -s
|
||||
env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking
|
||||
make -j $(nproc) check
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
Loading…
Reference in New Issue
Block a user