Skip to content

Update legitify.yml #151

Update legitify.yml

Update legitify.yml #151

Workflow file for this run

name: SonarWflow
on:
push:
pull_request_target:
jobs:
sonarcloud:
name: SonarJob
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud env setup
run: |
echo "PROJECTKEY=${{ github.repository_owner}}_$(echo ${{ github.repository }} | sed 's/.*\///')" >> $GITHUB_ENV
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.repository_owner}}
-Dsonar.projectKey=${{ env.PROJECTKEY }}
# -Dsonar.tests=Tests/ #-Dsonar.projectKey=${{ env.PROJECTKEY }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#PROJECTKEY: ${{ github.repository_owner}}_$(echo ${{ github.repository }} | sed 's/.*\///')