Skip to content

Commit c026d4c

Browse files
author
GitHub Action Sync Bot
committed
Update from source repository (workflow run: 18935253842) (PR #12) (commit: 74cd955de5f84855b6cd841f14399e1bed9ca4f7) (branch: main)
1 parent 5b3296e commit c026d4c

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

.github/workflows/sonar-scan.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
name: Sonar Scan
1+
name: Sonar Analysis
22

33
on:
44
push:
55
branches:
6-
- main
6+
- '**'
7+
- '*'
78
pull_request:
89
types: [opened, synchronize, reopened]
910

1011
jobs:
11-
build:
12-
name: Sonar
13-
runs-on: self-hosted
14-
steps:
15-
- uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18-
- uses: sonarsource/sonarqube-scan-action@master
19-
env:
20-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
22-
# If you wish to fail your job when the Quality Gate is red, uncomment the
23-
# following lines. This would typically be used to fail a deployment.
24-
# We do not recommend to use this in a pull request. Prefer using pull request
25-
# decoration instead.
26-
# - uses: sonarsource/sonarqube-quality-gate-action@master
27-
# timeout-minutes: 5
28-
# env:
29-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12+
sonar:
13+
uses: thoughtspot/workflows/.github/workflows/sonar-scan.yml@main
14+
secrets:
15+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
16+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
17+
SONAR_PROJECTKEY: ${{ secrets.SONAR_PROJECTKEY }}

sonar-project.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)