Skip to content

Commit 811f3ca

Browse files
[StepSecurity] ci: Harden GitHub Actions (#6428)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 99c3b9c commit 811f3ca

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/static-analysis-codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2626

2727
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v3
28+
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
2929
with:
3030
languages: go
3131
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
3232
queries: +security-and-quality
3333

3434
- name: Autobuild
35-
uses: github/codeql-action/autobuild@v3
35+
uses: github/codeql-action/autobuild@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v3
38+
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
3939
with:
4040
category: "/language:go"

.github/workflows/static-analysis-semgrep.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
3636

3737
- name: Upload SARIF file for GitHub Advanced Security Dashboard
38-
uses: github/codeql-action/upload-sarif@v3
38+
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
3939
with:
4040
sarif_file: semgrep.sarif
4141
if: ${{ github.event.number == '' && !cancelled() }}

.github/workflows/template-trivy-scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
trivy-config: trivy.yml
5757

5858
- name: Upload Trivy scan results to GitHub Security tab
59-
uses: github/codeql-action/upload-sarif@v3
59+
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
6060
if: ${{ inputs.publish }}
6161
with:
6262
sarif_file: ${{ inputs.output }}

0 commit comments

Comments
 (0)