Skip to content

Commit 3e5a079

Browse files
authored
chore: add codeql config (#28)
2 parents ac63806 + 42dca6d commit 3e5a079

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/codeql.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
branches: [ "master" ]
19+
schedule:
20+
- cron: '40 2 * * 4'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
runs-on: 'ubuntu-latest'
26+
permissions:
27+
security-events: write
28+
packages: read
29+
actions: read
30+
contents: read
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
include:
36+
- language: go
37+
build-mode: autobuild
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
41+
42+
# Add any setup steps before running the `github/codeql-action/init` action.
43+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
44+
# or others). This is typically only required for manual builds.
45+
# - name: Setup runtime (example)
46+
# uses: actions/setup-example@v1
47+
48+
# Initializes the CodeQL tools for scanning.
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
51+
with:
52+
languages: ${{ matrix.language }}
53+
build-mode: ${{ matrix.build-mode }}
54+
55+
- name: Perform CodeQL Analysis
56+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
57+
with:
58+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)