Skip to content

Commit 149811a

Browse files
Split test-analyze
1 parent 7b2faff commit 149811a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,40 @@ jobs:
223223
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
224224
SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_TOKEN }}
225225
JAVA_TOOL_OPTIONS: "" # Set an empty value to avoid issues with runners hanging and significantly slowing down builds
226+
227+
custom-rules-license-check:
228+
name: Custom Rules and License Check
229+
needs:
230+
- build
231+
if: ${{ needs.build.outputs.deployed }}
232+
runs-on: github-ubuntu-latest-m
233+
permissions:
234+
id-token: write
235+
contents: write
236+
env:
237+
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
238+
steps:
239+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
240+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
241+
with:
242+
version: 2025.7.12
243+
- uses: SonarSource/vault-action-wrapper@v3
244+
id: secrets
245+
with:
246+
secrets: |
247+
development/kv/data/next url | SONAR_HOST_URL;
248+
development/kv/data/next token | SONAR_TOKEN;
249+
- uses: SonarSource/ci-github-actions/config-maven@v1
250+
with:
251+
deploy: false
252+
artifactory-reader-role: private-reader
253+
artifactory-deployer-role: qa-deployer
254+
use-develocity: true
255+
develocity-url: https://develocity-public.sonar.build/
256+
env:
257+
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
258+
SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_TOKEN }}
259+
JAVA_TOOL_OPTIONS: "" # Set an empty value to avoid issues with runners hanging and significantly slowing down builds
226260
- name: Build Java Custom Rules Example
227261
env:
228262
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
@@ -325,6 +359,7 @@ jobs:
325359
- plugin-qa
326360
- sanity
327361
- test-analyze
362+
- custom-rules-license-check
328363
- autoscan
329364
- qa-os-win
330365
if: ${{ needs.build.outputs.deployed }}

0 commit comments

Comments
 (0)