Skip to content

Commit 2be9512

Browse files
committed
lint: Add CodeQL analysis.
1 parent 58555a5 commit 2be9512

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/codeql.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: CodeQL Analysis
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: [main]
10+
schedule:
11+
- cron: 0 0 * * 0
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [go]
26+
27+
steps:
28+
- name: Harden Runner
29+
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
30+
with:
31+
egress-policy: audit
32+
33+
- name: Checkout Repository
34+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v2
38+
with:
39+
languages: ${{ matrix.language }}
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v2
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v2
46+
with:
47+
category: /language:${{matrix.language}}

.github/workflows/dependency-review.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Source repository: https://github.com/actions/dependency-review-action
1010
name: Dependency Review
11+
1112
on: [pull_request]
1213

1314
permissions:

0 commit comments

Comments
 (0)