Update CodeQL GitHub Action

* Use v2 versions of the CodeQL actions
* Update runner to Ubuntu 20.04, specify container with the same OS
* Update flags to apt-get install, was using a deprecated option
master
Nicolas Favre-Felix 1 year ago
parent 6057a162f7
commit 6e08e94763
No known key found for this signature in database
GPG Key ID: C04E7AA8B6F73372

@ -15,25 +15,27 @@ on:
jobs:
CodeQL-Build:
runs-on: ubuntu-latest # GitHub Runner
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@v1
uses: github/codeql-action/init@v2
with:
languages: cpp
queries: +security-and-quality
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y --force-yes install make gcc libevent-dev libmsgpack-dev python3
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@v1
uses: github/codeql-action/autobuild@v2
- name: CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

Loading…
Cancel
Save