Skip to content

Update dependencycheck.yml #121

Update dependencycheck.yml

Update dependencycheck.yml #121

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/.*\///')