Skip to content

Commit

Permalink
Snyk and Sonar test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek28058 authored Oct 24, 2024
1 parent 13e237b commit 1079441
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/Snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:

## Sonar Cloud Integration

- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: '17'

- name: Install SonarCloud Scanner
run: npm install -g sonar-scanner

Expand All @@ -60,8 +65,8 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # SonarCloud token stored as a GitHub secret
run: |
sonar-scanner \
-Dsonar.projectKey=your_project_key \
-Dsonar.organization=your_organization_key \
-Dsonar.projectKey=vivek28058 \
-Dsonar.organization=vivek28058 \
-Dsonar.sources=. \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 1079441

Please sign in to comment.