Skip to content

Commit b01365b

Browse files
committed
update sonar
Signed-off-by: dikshagupta1 <dikshagupta1303@gmail.com>
1 parent 9deb3d0 commit b01365b

1 file changed

Lines changed: 5 additions & 75 deletions

File tree

.github/workflows/sonarqube.yml

Lines changed: 5 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -8,73 +8,8 @@ on:
88
- 'release/**'
99
pull_request:
1010
types: [opened, synchronize, reopened]
11-
workflow_call:
12-
inputs:
13-
perform-build:
14-
required: false
15-
type: boolean
16-
build-profile:
17-
required: false
18-
type: string
19-
language:
20-
required: false
21-
type: string
22-
report-unit-test-coverage:
23-
required: false
24-
type: boolean
25-
report-to-atlassian-dashboard:
26-
required: false
27-
type: boolean
28-
quality-product-name:
29-
required: false
30-
type: string
31-
quality-sonar-app-name:
32-
required: false
33-
type: string
34-
quality-testing-type:
35-
required: false
36-
type: string
37-
quality-service-name:
38-
required: false
39-
type: string
40-
quality-junit-report:
41-
required: false
42-
type: string
43-
visibility:
44-
required: false
45-
type: string
46-
udf1:
47-
required: false
48-
type: string
49-
udf2:
50-
required: false
51-
type: string
52-
udf3:
53-
required: false
54-
type: string
5511

56-
57-
jobs:
58-
echo-inputs:
59-
name: 'Echo inputs'
60-
runs-on: ubuntu-latest
61-
steps:
62-
- name: Echo inputs
63-
run: |
64-
echo "Sonarqube scan for PRIVATE repositories, running on ubuntu-latest-4-cores runner"
65-
echo "Perform build set to ${{ inputs.perform-build }}"
66-
echo "Build profile set to ${{ inputs.build-profile }}"
67-
echo "Language set to ${{ inputs.language }} "
68-
echo "Visibility set to ${{ inputs.visibility }} [ ${{ github.event.repository.visibility }} ]"
69-
echo "Perform unit test coverage set to ${{ inputs.report-unit-test-coverage }}"
70-
echo "Report to Atlassian dashboard set to ${{ inputs.report-to-atlassian-dashboard }}"
71-
echo "Quality product name set to ${{ inputs.quality-product-name }}"
72-
echo "Quality sonar application name set to ${{ inputs.quality-sonar-app-name }}"
73-
echo "Quality testing type set to ${{ inputs.quality-testing-type }}"
74-
echo "Quality service name set to ${{ inputs.quality-service-name }}"
75-
echo "Quality JUnit report set to ${{ inputs.quality-junit-report }}"
76-
echo "Go private modules set to ${{ inputs.go-private-modules }}"
77-
12+
jobs:
7813
SonarQube:
7914
runs-on: ubuntu-latest
8015
permissions:
@@ -105,29 +40,24 @@ jobs:
10540
sleep 30
10641
10742
- name: SonarQube Scan
108-
if: ${{ inputs.visibility == 'public' }}
10943
uses: sonarsource/sonarqube-scan-action@v5.1.0
11044
continue-on-error: true
11145
env:
11246
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
11347
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
11448

11549
- name: Run SonarQube report generation
116-
if: ${{ inputs.report-to-atlassian-dashboard == true }}
11750
uses: Progress-I360/github-action-reporting/sonarqube@main
11851
with:
119-
PRODUCT_NAME: ${{ inputs.quality-product-name }}
120-
SONAR_APP_NAME: ${{ inputs.quality-sonar-app-name }}
52+
PRODUCT_NAME: Builder
53+
SONAR_APP_NAME: Builder
12154
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12255

12356
- name: Run report generation
124-
if: ${{ inputs.report-to-atlassian-dashboard == true && inputs.report-unit-test-coverage == true }}
12557
uses: Progress-I360/github-action-reporting/automation@main
12658
with:
127-
PRODUCT_NAME: ${{ inputs.quality-product-name }}
128-
TESTING_TYPE: ${{ inputs.quality-testing-type }}
129-
SERVICE_NAME: ${{ inputs.quality-service-name }}
130-
JUNIT_REPORT: ${{ inputs.quality-junit-report }}
59+
PRODUCT_NAME: Builder
60+
TESTING_TYPE: Unit
13161

13262
- name: Remove Storage Firewall Rule
13363
if: always()

0 commit comments

Comments
 (0)