Skip to content

Commit

Permalink
Update CodeQL GitHub Action
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nicolasff committed Aug 26, 2023
1 parent 9a29a85 commit e38c202
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e38c202

Please sign in to comment.