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@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2024-09-19 11:09:51 +02:00
parent a5fb752ecf
commit f468606163
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 9 additions and 14 deletions

View File

@ -33,8 +33,8 @@ on:
jobs: jobs:
codeql: codeql:
runs-on: 'ubuntu-latest' runs-on: ubuntu-24.04
timeout-minutes: 360 timeout-minutes: 10
env: env:
DISABLE_WARN_OUTSIDE_CONTAINER: '1' DISABLE_WARN_OUTSIDE_CONTAINER: '1'
permissions: permissions:
@ -48,11 +48,6 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 2 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, # 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, # 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 # including vendor directories. If no module is found, it's creating one