You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
962 B
YAML
42 lines
962 B
YAML
name: CodeQL
|
|
|
|
# trigger the workflow on push or pull requests for some paths
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/**'
|
|
- '.github/**'
|
|
- 'Makefile'
|
|
pull_request:
|
|
paths:
|
|
- 'src/**'
|
|
- '.github/**'
|
|
- 'Makefile'
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
runs-on: ubuntu-20.04 # GitHub Runner
|
|
container: ubuntu:20.04 # Docker Hub container
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: cpp
|
|
queries: +security-and-quality
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
apt-get -y update
|
|
apt-get -y --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages \
|
|
install make gcc libevent-dev libmsgpack-dev
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v2
|
|
|
|
- name: CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|