Skip to content

GitHub Actions Fixes #90

GitHub Actions Fixes

GitHub Actions Fixes #90

Workflow file for this run

name: SonarQube Scan
on:
pull_request:
branches-ignore:
- "dependabot/**"
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
permissions:
contents: read
jobs:
scan:
name: Sonar Scan Runner
runs-on: ubuntu-latest
if: github.repository == 'trimble-oss/devguide'
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 18
- name: Run Sonar Scan Action
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}