Skip to content

rework on the way to pass variable to sonarqube (#32) #15

rework on the way to pass variable to sonarqube (#32)

rework on the way to pass variable to sonarqube (#32) #15

Workflow file for this run

on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Sonar Qube Scan
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v3.1.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
with:
projectBaseDir: GH.MiscToolbox
sources: GH.MiscToolbox
exclusions: docs
args: >
-Dsonar.organization=psarras
-Dsonar.projectKey=psarras_GH-Misc-Toolbox
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}