Skip to content

Commit 776ce73

Browse files
committed
SonarCloud security
1 parent c2cb968 commit 776ce73

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/security.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,22 @@ jobs:
4848
uses: github/codeql-action/autobuild@v2
4949
- name: Perform CodeQL Analysis
5050
uses: github/codeql-action/analyze@v2
51+
52+
sonarcloud:
53+
name: Run SonarCloud scanning
54+
runs-on: ubuntu-latest
55+
permissions:
56+
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
57+
steps:
58+
- uses: actions/checkout@v3
59+
with:
60+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
61+
- name: SonarCloud Scan
62+
uses: SonarSource/sonarcloud-github-action@v1.6
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
66+
with:
67+
args:
68+
-Dsonar.projectKey=jerone_eslint-plugin-angular-template-consistent-this
69+
-Dsonar.organization=jerone

0 commit comments

Comments
 (0)