Skip to content

Commit

Permalink
Update CodeQL workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriela Georgieva <[email protected]>
  • Loading branch information
gabriellavengeo committed Oct 26, 2023
1 parent 39e1de9 commit 39b1d37
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: codeql

on:
push:
branches:
- 'master'
- '[0-9]+.[0-9]+'
tags:
- 'v*'
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
Expand All @@ -15,7 +24,13 @@ on:

jobs:
codeql:
runs-on: ubuntu-20.04
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

steps:
-
name: Checkout
Expand All @@ -27,6 +42,11 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
run: |
git checkout HEAD^2
-
name: Update Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -38,3 +58,5 @@ jobs:
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:go"

0 comments on commit 39b1d37

Please sign in to comment.