-
Notifications
You must be signed in to change notification settings - Fork 285
34 lines (34 loc) · 1.08 KB
/
codeql.yaml
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
# Broadly based on example Github action from
# https://github.com/github/codeql-action#usage
name: codeql
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
# https://github.com/github/codeql-action/issues/572
permissions:
actions: read
contents: read
pull-requests: read
security-events: write
on:
push:
branches:
- main
jobs:
codeql:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: initialize
uses: github/codeql-action/init@v3
with:
# Limit analysis to Go for now.
# Available languages: https://docs.github.com/en/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#changing-the-languages-that-are-analyzed
languages: go
- name: autobuild
uses: github/codeql-action/autobuild@v3
- name: analyze
uses: github/codeql-action/analyze@v3