Update SonarSource/sonarcloud-github-action digest to ffc3010 (#1165) #1401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A workflow that runs SonarQube | |
name: SonarCloud Nightly | |
on: | |
schedule: | |
- cron: '4 4 * * *' | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
# Declare default permissions as read only. | |
permissions: | |
contents: read | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776 # v2.2.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
github.com:443 | |
scanner.sonarcloud.io:443 | |
sonarcloud.io:443 | |
- name: "Checkout code" | |
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@ffc3010689be73b8e5ae0c57ce35968afd7909e8 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |