@@ -8,13 +8,16 @@ name: generate_and_upload_coverage_data
88 - master
99 pull_request :
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 generate_and_upload_coverage_data :
1316 name : generate_and_upload_coverage_data
1417 runs-on : ubuntu-22.04
1518 steps :
1619 - name : Checkout
17- uses : actions/checkout@v5
20+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1821 with :
1922 fetch-depth : 0
2023
@@ -23,12 +26,12 @@ jobs:
2326 ./validate_codecov_yml.sh
2427
2528 - name : Set up Python
26- uses : actions/setup-python@v5
29+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2730 with :
2831 python-version : 3.13
2932
3033 - name : Set up Poetry
31- uses : snok/install-poetry@v1
34+ uses : snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
3235
3336 - name : Install dependencies
3437 run : |
@@ -48,13 +51,13 @@ jobs:
4851 --iteration_size=0
4952
5053 - name : Sonar Scan
51- uses : SonarSource/sonarqube-scan-action@v5
54+ uses : SonarSource/sonarqube-scan-action@8c71dc039c2dd71d3821e89a2b58ecc7fee6ced9 # v5.3.0
5255 env :
5356 SONAR_HOST_URL : ${{ vars.SONAR_HOST_URL }}
5457 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5558
5659 - name : Upload coverage report to Codecov
57- uses : codecov/codecov-action@v5
60+ uses : codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
5861 with :
5962 token : ${{ secrets.CODECOV_TOKEN }}
6063 fail_ci_if_error : true
@@ -63,18 +66,18 @@ jobs:
6366 if : >-
6467 github.event_name == 'pull_request' &&
6568 github.event.pull_request.head.repo.full_name != github.repository
66- uses : codecov/codecov-action@v5
69+ uses : codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
6770 with :
6871 fail_ci_if_error : true
6972
7073 - name : Upload coverage report to Codacy
71- uses : codacy/codacy-coverage-reporter-action@v1
74+ uses : codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
7275 with :
7376 project-token : ${{ secrets.CODACY_PROJECT_TOKEN }}
7477 coverage-reports : coverage.xml
7578
7679 - name : Upload coverage report as an artifact
77- uses : actions/upload-artifact@v4
80+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7881 with :
7982 name : coverage_report
8083 path : |
0 commit comments