Skip to content

Commit f9e22ca

Browse files
GHA version pinning (#23)
* GHA version pinning * fixed C+P error * Clean up blank lines in codeql-analysis.yml Removed unnecessary blank lines in CodeQL workflow. * Update .github/workflows/codacy-analysis.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d15884d commit f9e22ca

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/codacy-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
# Checkout the repository to the GitHub Actions runner
2929
- name: Checkout code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3131
with:
3232
submodules: recursive
3333
token: ${{ secrets.GITHUB_TOKEN }}
@@ -41,7 +41,7 @@ jobs:
4141
4242
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
4343
- name: Run Codacy Analysis CLI
44-
uses: codacy/codacy-analysis-cli-action@v4
44+
uses: codacy/codacy-analysis-cli-action@9e45d0be1fc80fd2d86048032610422fdbcc6068 # pinned from codacy/codacy-analysis-cli-action@v4
4545
with:
4646
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
4747
# You can also omit the token and run the tools that support default configurations
@@ -70,7 +70,7 @@ jobs:
7070
7171
# Upload the SARIF file generated in the previous step
7272
- name: Upload SARIF results file
73-
uses: github/codeql-action/upload-sarif@v4
73+
uses: github/codeql-action/upload-sarif@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # pinned to github/codeql-action/upload-sarif v3.35.1 (intentionally using v3.x instead of v4.x)
7474
with:
7575
sarif_file: sarif-runs/
7676
category: codacy

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
34+
3435

3536
# Initializes the CodeQL tools for scanning.
3637
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v3
38+
uses: github/codeql-action/init@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3.35.1
3839
with:
3940
languages: ${{ matrix.language }}
4041
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -43,9 +44,9 @@ jobs:
4344
# Python is an interpreted language so Autobuild is a no-op, but keeping
4445
# it here means the workflow works if compiled languages are added later.
4546
- name: Autobuild
46-
uses: github/codeql-action/autobuild@v3
47+
uses: github/codeql-action/autobuild@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3.35.1
4748

4849
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@v3
50+
uses: github/codeql-action/analyze@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3.35.1
5051
with:
5152
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)