-
Notifications
You must be signed in to change notification settings - Fork 255
40 lines (37 loc) · 1.09 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: codeql
# Any change in triggers needs to be reflected in the concurrency group.
on:
push:
branches:
- main
- v0.12
pull_request:
branches:
- main
schedule:
- cron: "45 7 * * 3"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after || 'scheduled' }}
cancel-in-progress: true
jobs:
analyze:
if: github.repository == 'cilium/hubble'
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.3'
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
- name: Initialize CodeQL
uses: github/codeql-action/init@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3