Skip to content

Commit 7a440ef

Browse files
authored
fix codeql error v2 (#2851)
Signed-off-by: Sepehrdad Sh <26747519+sepehrdaddev@users.noreply.github.com>
1 parent 8e40740 commit 7a440ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/codeql-analysis.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
# a pull request then we can checkout the head.
4747
fetch-depth: 2
4848

49+
- name: Setup Go
50+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
51+
with:
52+
go-version: '^1.21'
53+
check-latest: true
54+
4955
# Initializes the CodeQL tools for scanning.
5056
- name: Initialize CodeQL
5157
uses: github/codeql-action/init@9a866ed4524fc3422c3af1e446dab8efa3503411
@@ -73,8 +79,4 @@ jobs:
7379
# make release
7480

7581
- name: Perform CodeQL Analysis
76-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
77-
with:
78-
go-version: '^1.21'
79-
check-latest: true
80-
- uses: github/codeql-action/analyze@9a866ed4524fc3422c3af1e446dab8efa3503411
82+
uses: github/codeql-action/analyze@9a866ed4524fc3422c3af1e446dab8efa3503411

0 commit comments

Comments
 (0)