Skip to content

Sonarqube Nightly #1255

Sonarqube Nightly

Sonarqube Nightly #1255

Workflow file for this run

# A workflow that runs SonarQube
name: Sonarqube Nightly
on:
schedule:
- cron: '5 4 * * *'
workflow_dispatch:
push:
branches: [ main ]
permissions: read-all
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
disable-sudo: true
egress-policy: block
disable-telemetry: false
allowed-endpoints: >
github.com:443
scanner.sonarcloud.io:443
sonarcloud.io:443
ea6ne4j2sb.execute-api.eu-central-1.amazonaws.com:443
- name: "Checkout code"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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@eb211723266fe8e83102bac7361f0a05c3ac1d1b # v3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}