7878
7979 SonarQube :
8080 runs-on : ubuntu-latest
81- permissions : # Must change the job token permissions to use JWT auth
81+ permissions :
8282 id-token : write
8383 contents : read
8484
@@ -88,17 +88,15 @@ jobs:
8888 with :
8989 fetch-depth : 0
9090
91- # from Confluence, with @latest version of the action
91+ # from Confluence, with @latest version of the action
9292 # - name: Prepare Secrets and Login into Azure
9393 # id: get-aad-secret
9494 # uses: 'prgs-community/githubactions-reusableworkflow-sonarqube/.github/actions/azure-login@latest'
9595 # with:
9696 # akeyless-access-id: '${{ secrets.AKEYLESS_JWT_ID }}'
9797
98- # Use @{ver} to select the version of the action. "latest" tag is also available for latest version.
9998 - name : Prepare Secrets and Login into Azure
10099 id : get-aad-secret
101- # uses: 'prgs-community/githubactions-reusableworkflow-sonarqube/.github/actions/azure-login@0.8'
102100 uses : ' chef/common-github-actions/.github/actions/azure-login@main'
103101 with :
104102 akeyless-access-id : ' ${{ secrets.AKEYLESS_JWT_ID }}'
@@ -117,7 +115,6 @@ jobs:
117115 - name : SonarQube Scan
118116 if : ${{ inputs.visibility == 'public' }}
119117 uses : sonarsource/sonarqube-scan-action@v5.1.0
120- # Confluence uses old version: SonarSource/sonarqube-scan-action@v2.0.1
121118 continue-on-error : true
122119 env :
123120 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
@@ -135,7 +132,6 @@ jobs:
135132 run : |
136133 az logout
137134
138-
139135# TODO: Test adding Irfan's quality reporting stage inline here after sonar run (https://github.com/Progress-I360/github-action-reporting)
140136# PRODUCT_NAME = [Chef360 | Courier | Inspec] @main removed
141137 # - name: Run SonarQube report generation
@@ -156,19 +152,4 @@ jobs:
156152 # PRODUCT_NAME: ${{ inputs.quality-product-name }}
157153 # TESTING_TYPE: ${{ inputs.quality-testing-type }}
158154 # SERVICE_NAME: ${{ inputs.quality-service-name }}
159- # JUNIT_REPORT: ${{ inputs.quality-junit-report }}
160-
161- # IP-RANGE-CONTROLLED no longer works... probably needs IP range refresh, cannot get throughto api.sonar
162- # SonarQube:
163- # runs-on: ip-range-controlled
164- # steps:
165- # - uses: actions/checkout@v4
166- # with:
167- # fetch-depth: 0
168-
169- # - name: SonarQube Scan
170- # uses: sonarsource/sonarqube-scan-action@v5.1.0
171- # continue-on-error: true
172- # env:
173- # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
174- # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
155+ # JUNIT_REPORT: ${{ inputs.quality-junit-report }}
0 commit comments