-
-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (38 loc) · 832 Bytes
/
Copy pathcodeql.yaml
File metadata and controls
47 lines (38 loc) · 832 Bytes
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
41
42
43
44
45
46
47
name: CodeQL
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 20 * * *"
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: ubuntu-slim
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 2
- name: Install Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
- name: Check versions
run: |
go version
go env
- name: Download modules
run: go mod download
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4