mongoose/.github/workflows/codeql.yml

33 lines
719 B
YAML
Raw Normal View History

2023-07-20 01:19:59 +08:00
name: "CodeQL Scanning"
# https://github.com/github/codeql-action
on:
2024-01-26 23:22:03 +08:00
schedule:
- cron: '30 2 * * *' # run at 2:30 AM UTC
# Allow manual runs
workflow_dispatch:
2023-07-20 01:19:59 +08:00
2023-07-20 02:10:28 +08:00
env:
IPV6: 0
2023-07-20 01:19:59 +08:00
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
with: { fetch-depth: 2 }
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
2023-07-20 01:25:32 +08:00
with:
languages: cpp
2023-07-20 01:19:59 +08:00
- run: |
2023-07-20 03:14:44 +08:00
make test CC=gcc ASAN= ASAN_OPTIONS=
./test/setup_ga_network.sh && make mip_test CC=gcc ASAN= ASAN_OPTIONS=
2023-07-20 01:19:59 +08:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2