4
4
pull_request :
5
5
branches : [master]
6
6
paths-ignore :
7
- - ' README.md'
8
- - ' charts/**'
9
- - ' docs/**'
7
+ - " README.md"
8
+ - " charts/**"
9
+ - " docs/**"
10
10
schedule :
11
- - cron : ' 0 19 * * 0'
11
+ - cron : " 0 19 * * 0"
12
12
13
13
jobs :
14
14
analyze :
15
15
name : Analyze
16
16
runs-on : ubuntu-latest
17
17
18
18
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
25
25
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' }}
30
30
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
37
37
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
42
42
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
45
45
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
49
49
50
- # - run: |
51
- # make bootstrap
52
- # make release
50
+ # - run: |
51
+ # make bootstrap
52
+ # make release
53
53
54
- - name : Perform CodeQL Analysis
55
- uses : github/codeql-action/analyze@v1
54
+ - name : Perform CodeQL Analysis
55
+ uses : github/codeql-action/analyze@v1
56
56
57
57
gosec :
58
58
name : GoSec
@@ -63,12 +63,12 @@ jobs:
63
63
- name : Checkout Source
64
64
uses : actions/checkout@v2
65
65
- name : Run Gosec Security Scanner
66
- uses : pbalogh-sa /gosec@master
66
+ uses : securego /gosec@master
67
67
with :
68
68
# 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 ./..."
70
70
- name : Upload SARIF file
71
71
uses : github/codeql-action/upload-sarif@v1
72
72
with :
73
73
# 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