-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.1 KB
/
codeql.yml
File metadata and controls
48 lines (45 loc) · 1.1 KB
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
48
name: CodeQL
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '17 6 * * 1'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze (Go)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout this repo
uses: actions/checkout@v4
with:
path: worker
- name: Checkout sibling InstaNode-dev/common
uses: actions/checkout@v4
with:
repository: InstaNode-dev/common
path: common
- name: Checkout sibling InstaNode-dev/proto
uses: actions/checkout@v4
with:
repository: InstaNode-dev/proto
path: proto
- uses: actions/setup-go@v5
with:
go-version-file: worker/go.mod
- uses: github/codeql-action/init@v3
with:
languages: go
queries: security-extended
- name: Build
working-directory: worker
run: go build ./...
- uses: github/codeql-action/analyze@v3
with:
category: "/language:go"