Skip to content

Commit 4ec2d92

Browse files
committed
Update sonarqube yml file
1 parent a9ffae3 commit 4ec2d92

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/sonarqube.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: SonarQube Scan
22

33
on:
44
push:
5-
branches:
6-
- main
5+
# branches:
6+
# - main
77
pull_request:
88
types: [opened, synchronize, reopened]
99

@@ -29,4 +29,10 @@ jobs:
2929
env:
3030
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3131
# use https://your-sonarqube-server.com if using sonarqube or else use https://sonarcloud.io for sonarcloud
32-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
32+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
33+
34+
- name: Quality Gate Check
35+
uses: SonarSource/sonarqube-quality-gate-action@v1.1.0
36+
timeout-minutes: 5
37+
env:
38+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)