Skip to content

Commit 97b71bd

Browse files
authored
Create codeql-scanning.yml (#279)
* Create codeql-scanning.yml * adding versions
1 parent 18e5a85 commit 97b71bd

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql-scanning.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "codeql-scanning"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'release/*'
8+
pull_request:
9+
branches:
10+
- main
11+
- 'release/*'
12+
schedule:
13+
- cron: '0 9 * * *'
14+
15+
jobs:
16+
CodeQL-Scanning:
17+
18+
runs-on: ubuntu-latest
19+
20+
permissions:
21+
contents: read
22+
security-events: write
23+
pull-requests: read
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
28+
with:
29+
submodules: recursive
30+
31+
- name: Install golang
32+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # 5.3.0
33+
with:
34+
go-version: '1.21.13'
35+
36+
# Initializes the CodeQL tools for scanning.
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
39+
with:
40+
languages: go
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8

0 commit comments

Comments
 (0)