Skip to content

Commit 298b2f9

Browse files
authored
ci: gosec-fix (#97)
Signed-off-by: Peter Balogh <[email protected]>
1 parent 33fbb6b commit 298b2f9

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

.github/workflows/codeql-analysis.yaml

+37-37
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,55 @@ on:
44
pull_request:
55
branches: [master]
66
paths-ignore:
7-
- 'README.md'
8-
- 'charts/**'
9-
- 'docs/**'
7+
- "README.md"
8+
- "charts/**"
9+
- "docs/**"
1010
schedule:
11-
- cron: '0 19 * * 0'
11+
- cron: "0 19 * * 0"
1212

1313
jobs:
1414
analyze:
1515
name: Analyze
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v2
21-
with:
22-
# We must fetch at least the immediate parents so that if this is
23-
# a pull request then we can checkout the head.
24-
fetch-depth: 2
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
with:
22+
# We must fetch at least the immediate parents so that if this is
23+
# a pull request then we can checkout the head.
24+
fetch-depth: 2
2525

26-
# If this run was triggered by a pull request event, then checkout
27-
# the head of the pull request instead of the merge commit.
28-
- run: git checkout HEAD^2
29-
if: ${{ github.event_name == 'pull_request' }}
26+
# If this run was triggered by a pull request event, then checkout
27+
# the head of the pull request instead of the merge commit.
28+
- run: git checkout HEAD^2
29+
if: ${{ github.event_name == 'pull_request' }}
3030

31-
# Initializes the CodeQL tools for scanning.
32-
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v1
34-
# Override language selection by uncommenting this and choosing your languages
35-
with:
36-
languages: go
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v1
34+
# Override language selection by uncommenting this and choosing your languages
35+
with:
36+
languages: go
3737

38-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
39-
# If this step fails, then you should remove it and run the build manually (see below)
40-
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v1
38+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
39+
# If this step fails, then you should remove it and run the build manually (see below)
40+
- name: Autobuild
41+
uses: github/codeql-action/autobuild@v1
4242

43-
# ℹ️ Command-line programs to run using the OS shell.
44-
# 📚 https://git.io/JvXDl
43+
# ℹ️ Command-line programs to run using the OS shell.
44+
# 📚 https://git.io/JvXDl
4545

46-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
47-
# and modify them (or add more) to build your code if your project
48-
# uses a compiled language
46+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
47+
# and modify them (or add more) to build your code if your project
48+
# uses a compiled language
4949

50-
#- run: |
51-
# make bootstrap
52-
# make release
50+
#- run: |
51+
# make bootstrap
52+
# make release
5353

54-
- name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@v1
54+
- name: Perform CodeQL Analysis
55+
uses: github/codeql-action/analyze@v1
5656

5757
gosec:
5858
name: GoSec
@@ -63,12 +63,12 @@ jobs:
6363
- name: Checkout Source
6464
uses: actions/checkout@v2
6565
- name: Run Gosec Security Scanner
66-
uses: pbalogh-sa/gosec@master
66+
uses: securego/gosec@master
6767
with:
6868
# we let the report trigger content trigger a failure using the GitHub Security features.
69-
args: '-no-fail -fmt sarif -out gosec-results.sarif ./...'
69+
args: "-no-fail -fmt sarif -out gosec-results.sarif ./..."
7070
- name: Upload SARIF file
7171
uses: github/codeql-action/upload-sarif@v1
7272
with:
7373
# Path to SARIF file relative to the root of the repository
74-
sarif_file: gosec-results.sarif
74+
sarif_file: gosec-results.sarif

0 commit comments

Comments
 (0)