-
Notifications
You must be signed in to change notification settings - Fork 37
40 lines (33 loc) · 967 Bytes
/
codeql.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"
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 20 * * *'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04 # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'go'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
env:
# hack for fetch dependencies when failed to go-autobuilder 'make' command
# https://github.com/github/codeql-go/blob/b953fe39c2cb/extractor/cli/go-autobuilder/go-autobuilder.go#L409
CODEQL_EXTRACTOR_GO_BUILD_COMMAND: 'true'