Skip to content

Commit e656021

Browse files
author
Gonzalo Diaz
committed
[BUGFIX] sonarcloud security hotspot: use hashes instead of release tags
1 parent 0a7e159 commit e656021

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/gitleaks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
- uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
28-
- uses: gitleaks/gitleaks-action@v2
28+
# yamllint disable rule:line-length
29+
- uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2
2930
env:
3031
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3132
# Only required for Organizations, not personal accounts.
3233
# GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
34+
# yamllint enable rule:line-length

.github/workflows/rust-coverage.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Rust
2121
run: rustup update stable
2222
- name: Install cargo-llvm-cov
23-
uses: taiki-e/install-action@cargo-llvm-cov
23+
uses: taiki-e/install-action@7a9da991c71dfd905b2ee8252a9ce162f176dc6f
2424
- name: Install Clippy
2525
run: rustup component add clippy
2626
- name: Install cargo-sonar and run Clippy
@@ -59,12 +59,14 @@ jobs:
5959
with:
6060
name: coverage-report
6161

62+
# yamllint disable rule:line-length
6263
- name: Upload coverage reports to Codecov with GitHub Action
63-
uses: codecov/codecov-action@v5
64+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
6465
with:
6566
files: lcov.info
6667
token: ${{ secrets.CODECOV_TOKEN }} # required
6768
verbose: true # optional (default = false)
69+
# yamllint enable rule:line-length
6870

6971
sonarqube:
7072
name: SonarQube
@@ -80,12 +82,14 @@ jobs:
8082
uses: actions/download-artifact@v5
8183
with:
8284
name: coverage-report
85+
# yamllint disable rule:line-length
8386
- name: SonarCloud Scan
84-
uses: SonarSource/sonarqube-scan-action@master
87+
uses: SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5
8588
env:
8689
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8790
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8891
with:
8992
args: >
9093
-Dsonar.externalIssuesReportPaths=sonar-issues.json
9194
-Dsonar.rust.clippy.reportPaths=my-clippy-report.json
95+
# yamllint enable rule:line-length

0 commit comments

Comments
 (0)