From 6e08e94763eea1bd0f8b28c11cde04679f76e88e Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Fri, 25 Aug 2023 19:44:42 -0700 Subject: [PATCH] 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 --- .github/workflows/codeql.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a1d9113..e7b0bfa 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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