Skip to content

Commit 562e849

Browse files
committed
Security: Pin all actions to commit SHAs and upgrade checkout/setup-python
1 parent 5c9265d commit 562e849

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
ci:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.2.2
1717
with:
1818
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1919
- name: Set up Python 3.13
20-
uses: actions/setup-python@v3
20+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.3.0
2121
with:
2222
python-version: "3.13"
2323
- name: Install dependencies
@@ -47,23 +47,22 @@ jobs:
4747
python generate_graphs.py
4848
4949
- name: Snyk Security Scan
50-
uses: snyk/actions/python@9adf32b1121593767fc3c057af55b55db032dc04
50+
uses: snyk/actions/python@9adf32b1121593767fc3c057af55b55db032dc04 # master
5151
env:
5252
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
5353
continue-on-error: true
5454
with:
5555
args: --sarif-file-output=snyk.sarif
5656

5757
- name: Upload Snyk scan results to GitHub Code Scanning
58-
uses: github/codeql-action/upload-sarif@6bb031afdd747485962ca697cffec0a92e622a33
58+
uses: github/codeql-action/upload-sarif@45c373516f557556c15d420e3f5e0aa3d64366bc # v3.28.5
5959
continue-on-error: true
6060
with:
6161
sarif_file: snyk.sarif
6262

6363
- name: SonarQube Scan
64-
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203
64+
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1
6565
env:
6666
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6767
GITHUB_TOKEN: ${{ secrets.TOKEN_GH }}
68-
continue-on-error: true
69-
68+
continue-on-error: true

0 commit comments

Comments
 (0)