-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.2 KB
/
Copy pathcodeql.yml
File metadata and controls
39 lines (36 loc) · 1.2 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
name: codeql
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "30 7 * * 1" # weekly
permissions:
contents: read
jobs:
analyze:
name: analyze (go)
runs-on: ubuntu-latest
# CodeQL code scanning needs GitHub Advanced Security on a private
# repo; it is free on public repos. This job is skipped while the repo
# is private and activates automatically when it goes public.
if: ${{ !github.event.repository.private }}
permissions:
contents: read
security-events: write
actions: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
languages: go
queries: security-extended
- name: autobuild
uses: github/codeql-action/autobuild@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
- name: analyze
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4