Skip to content

Commit 6a4f93d

Browse files
authored
chore(ci): add CodeQL (#91)
Add workflow to run CodeQL analysis. Also renamed all workflows to use .yml. Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
1 parent 122e090 commit 6a4f93d

File tree

7 files changed

+44
-0
lines changed

7 files changed

+44
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '**.go'
8+
- 'go.mod'
9+
push:
10+
branches:
11+
- main
12+
13+
permissions: {}
14+
15+
jobs:
16+
analysis:
17+
name: Analysis
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language:
23+
- actions
24+
- go
25+
permissions:
26+
contents: read
27+
security-events: write
28+
steps:
29+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
with:
31+
persist-credentials: false
32+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
33+
with:
34+
go-version-file: go.mod
35+
if: matrix.language == 'go'
36+
- uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
37+
with:
38+
languages: ${{ matrix.language }}
39+
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
40+
- run: make build
41+
if: matrix.language == 'go'
42+
- uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
43+
with:
44+
category: /language:${{ matrix.language }}

.github/workflows/notify-integration-release-via-manual.yaml renamed to .github/workflows/notify-integration-release-via-manual.yml

File renamed without changes.

.github/workflows/notify-integration-release-via-tag.yaml renamed to .github/workflows/notify-integration-release-via-tag.yml

File renamed without changes.

0 commit comments

Comments
 (0)