mongoose/.github/workflows/codeql.yml

36 lines
703 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 02:10:28 +08:00
make test CC=gcc
./test/setup_ga_network.sh && make mip_test CC=gcc
2023-07-20 01:19:59 +08:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2