mongoose/.github/workflows/codeql.yml

36 lines
743 B
YAML
Raw Normal View History

2023-07-20 01:19:59 +08:00
name: "CodeQL Scanning"
# https://github.com/github/codeql-action
on:
push:
paths:
- "Makefile"
- "mongoose.c"
- "mongoose.h"
- test/unit-test
- test/mip-test
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