Update dependencycheck.yml #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/.*\///') |