|
1 | | -# For most projects, this workflow file will not need changing; you simply need |
2 | | -# to commit it to your repository. |
3 | | -# |
4 | | -# You may wish to alter this file to override the set of languages analyzed, |
5 | | -# or to provide custom queries or build logic. |
6 | | -# |
7 | | -# ******** NOTE ******** |
8 | | -# We have attempted to detect the languages in your repository. Please check |
9 | | -# the `language` matrix defined below to confirm you have the correct set of |
10 | | -# supported CodeQL languages. |
11 | | -# |
12 | 1 | name: "CodeQL" |
13 | 2 |
|
14 | 3 | on: |
@@ -36,42 +25,25 @@ jobs: |
36 | 25 | fail-fast: false |
37 | 26 | matrix: |
38 | 27 | language: ["go"] |
39 | | - # CodeQL supports [ $supported-codeql-languages ] |
40 | | - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
41 | 28 |
|
42 | 29 | steps: |
43 | | - - name: Harden Runner |
44 | | - uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 |
45 | | - with: |
46 | | - egress-policy: audit |
47 | | - |
48 | 30 | - name: Checkout repository |
49 | 31 | uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 |
50 | 32 |
|
| 33 | + - name: Set up Go |
| 34 | + uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 |
| 35 | + with: |
| 36 | + go-version: "1.21" |
| 37 | + |
51 | 38 | # Initializes the CodeQL tools for scanning. |
52 | 39 | - name: Initialize CodeQL |
53 | 40 | uses: github/codeql-action/init@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 |
54 | 41 | with: |
55 | 42 | languages: ${{ matrix.language }} |
56 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
57 | | - # By default, queries listed here will override any specified in a config file. |
58 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
59 | 43 |
|
60 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
61 | | - # If this step fails, then you should remove it and run the build manually (see below) |
62 | 44 | - name: Autobuild |
63 | 45 | uses: github/codeql-action/autobuild@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 |
64 | 46 |
|
65 | | - # ℹ️ Command-line programs to run using the OS shell. |
66 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
67 | | - |
68 | | - # If the Autobuild fails above, remove it and uncomment the following three lines. |
69 | | - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
70 | | - |
71 | | - # - run: | |
72 | | - # echo "Run, Build Application using script" |
73 | | - # ./location_of_script_within_repo/buildscript.sh |
74 | | - |
75 | 47 | - name: Perform CodeQL Analysis |
76 | 48 | uses: github/codeql-action/analyze@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 |
77 | 49 | with: |
|
0 commit comments