forked from skycoin/skywire
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.11 KB
/
Copy pathcodeql.yml
File metadata and controls
48 lines (41 loc) · 1.11 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
# CodeQL static analysis (Go) — feeds the OpenSSF Scorecard "SAST" check and
# surfaces findings in the repo Security tab.
name: CodeQL
on:
push:
branches: [develop]
pull_request:
branches: [develop]
schedule:
- cron: '27 3 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
name: Analyze (go)
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: 'stable'
cache: true
cache-dependency-path: go.sum
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: go
# The default autobuild can choke on the multi-binary layout; build
# the main module explicitly instead (vendored, no network).
build-mode: manual
- name: Build
run: go build -mod=vendor ./cmd/...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:go"