-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.15 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
35
36
37
38
39
40
name: "CodeQL"
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
schedule:
# run every Saturday at 00:00 UTC
- cron: '0 0 * * 6'
jobs:
Analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# Learn more about CodeQL language support at https://git.io/codeql-language-support
language: [ 'go' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yaml
# Autobuild attempts to build any compiled languages (C/C++, C#, Java, etc).
# If this step fails, then you should remove it and run the build manually (see below)
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3