From f468606163fed3ebab2bdce9c777e1b6c9c82d03 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 19 Sep 2024 11:09:51 +0200 Subject: [PATCH] gha: codeql: minor touch-ups and fixes - remove trailing whitespace - pin to a versioned ubuntu version - adjust timeout to be more within expected duration - remove redundant git checkout, which is no longer needed Signed-off-by: Sebastiaan van Stijn --- .github/workflows/codeql.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1b15e2e22f..4055de0e80 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,14 +11,14 @@ permissions: on: push: - branches: - - 'master' - - '[0-9]+.[0-9]+' - tags: - - 'v*' + branches: + - 'master' + - '[0-9]+.[0-9]+' + tags: + - 'v*' pull_request: # The branches below must be a subset of the branches above - branches: [ "master" ] + branches: ["master"] schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) @@ -33,26 +33,21 @@ on: jobs: codeql: - runs-on: 'ubuntu-latest' - timeout-minutes: 360 + runs-on: ubuntu-24.04 + timeout-minutes: 10 env: DISABLE_WARN_OUTSIDE_CONTAINER: '1' permissions: actions: read contents: read security-events: write - + steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 2 - - - name: Checkout HEAD on PR - if: ${{ github.event_name == 'pull_request' }} - run: | - git checkout HEAD^2 # CodeQL 2.16.4's auto-build added support for multi-module repositories, # and is trying to be smart by searching for modules in every directory, # including vendor directories. If no module is found, it's creating one