mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:25:49 +00:00
Create sonarqube.yml
Signed-off-by: sairam-bathini <146484884+sairam-bathini@users.noreply.github.com>
This commit is contained in:
parent
c5af32d5a1
commit
0d8fd6b25d
1 changed files with 30 additions and 0 deletions
30
.github/workflows/sonarqube.yml
vendored
Normal file
30
.github/workflows/sonarqube.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: SonarQube analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Analysis:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Analyze with SonarQube
|
||||||
|
uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
with:
|
||||||
|
args: >
|
||||||
|
-Dsonar.projectKey=github-actions-test
|
||||||
|
-Dsonar.sources=.
|
Loading…
Reference in a new issue