@@ -31,27 +31,24 @@ jobs:
31
31
- run : git checkout HEAD^2
32
32
if : ${{ github.event_name == 'pull_request' }}
33
33
34
- # Initializes the CodeQL tools for scanning.
35
- - name : Initialize CodeQL
36
- uses : github/codeql-action/init@v2
37
- with :
38
- languages : go
34
+ - uses : arnested/go-version-action@v1
35
+ id : go-version
39
36
40
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
41
- # If this step fails, then you should remove it and run the build manually (see below)
42
- - name : Autobuild
43
- uses : github/codeql-action/autobuild@v2
37
+ - name : Set up Go ${{ steps.go-version.outputs.latest }}
38
+ uses :
WillAbides/[email protected]
39
+ with :
40
+ go-version : ${{ steps.go-version.outputs.latest }}.x
41
+ ignore-local : true
44
42
45
- # ℹ️ Command-line programs to run using the OS shell.
46
- # 📚 https://git.io/JvXDl
43
+ - run : go version
47
44
48
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
49
- # and modify them (or add more) to build your code if your project
50
- # uses a compiled language
45
+ - run : go build
51
46
52
- # - run: |
53
- # make bootstrap
54
- # make release
47
+ # Initializes the CodeQL tools for scanning.
48
+ - name : Initialize CodeQL
49
+ uses : github/codeql-action/init@v2
50
+ with :
51
+ languages : go
55
52
56
53
- name : Perform CodeQL Analysis
57
54
uses : github/codeql-action/analyze@v2
0 commit comments