2020 schedule :
2121 - cron : " 23 7 * * 1"
2222
23+ permissions :
24+ contents : read
25+
2326jobs :
2427 analyze :
2528 name : Analyze
@@ -38,17 +41,22 @@ jobs:
3841 # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3942
4043 steps :
44+ - name : Harden the runner (Audit all outbound calls)
45+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
46+ with :
47+ egress-policy : audit
48+
4149 - name : Checkout repository
42- uses : actions/checkout@v5
50+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4351
4452 - name : Install Go
45- uses : actions/setup-go@v6
53+ uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
4654 with :
4755 go-version-file : go.mod
4856
4957 # Initializes the CodeQL tools for scanning.
5058 - name : Initialize CodeQL
51- uses : github/codeql-action/init@v3
59+ uses : github/codeql-action/init@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0
5260 with :
5361 languages : ${{ matrix.language }}
5462 # If you wish to specify custom queries, you can do so here or in a config file.
5967 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6068 # If this step fails, then you should remove it and run the build manually (see below)
6169 - name : Autobuild
62- uses : github/codeql-action/autobuild@v3
70+ uses : github/codeql-action/autobuild@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0
6371
6472 # ℹ️ Command-line programs to run using the OS shell.
6573 # 📚 https://git.io/JvXDl
7381 # make release
7482
7583 - name : Perform CodeQL Analysis
76- uses : github/codeql-action/analyze@v3
84+ uses : github/codeql-action/analyze@d198d2fabf39a7f36b5ce57ce70d4942944f006e # v3.31.0
0 commit comments