Repository navigation
AP-1498: Activate AI-enhanced ruling diff reviews #6550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
523b822
d05a8a3
fd972c7
42e5ae9
0505a5f
74cfcd0
ad73461
bf1198c
770944f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,8 @@ jobs: | |
| deployed: ${{ steps.build-maven.outputs.deployed }} | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| - uses: jdx/mise-action@90f833d396d0cc3674b631d2d225e306476c303a # v5.2.10 | ||
| with: | ||
| version: 2026.10.20 | ||
|
|
@@ -84,6 +86,7 @@ jobs: | |
| run: git config --global core.autocrlf input | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
gitar-bot[bot] marked this conversation as resolved.
Resolved
|
||
| submodules: recursive | ||
| - uses: jdx/mise-action@90f833d396d0cc3674b631d2d225e306476c303a # v5.2.10 | ||
| with: | ||
|
|
@@ -166,17 +169,24 @@ jobs: | |
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
|
gitar-bot[bot] marked this conversation as resolved.
Resolved
|
||
| fetch-depth: 0 | ||
| submodules: recursive | ||
|
|
||
| - name: Install uv | ||
| uses: step-security/setup-uv@b49aac5576b90039e3e427495dda1a21aba6aaec # v10.3.3 | ||
| - name: Get enhancer secrets | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this fails, it will skip the following step. |
||
| id: secrets | ||
| continue-on-error: true | ||
| uses: SonarSource/vault-action-wrapper@v3 | ||
| with: | ||
| enable-cache: true | ||
| secrets: | | ||
| development/kv/data/portkey/code-quality/ruling-test-unification api_key | PORTKEY_API_KEY_OPENAI; | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN; | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader role | ARTIFACTORY_ROLE; | ||
|
|
||
| - name: Check ruling-qa results | ||
| id: check-ruling | ||
|
|
@@ -196,6 +206,10 @@ jobs: | |
| ruling-failed: ${{ steps.check-ruling.outputs.ruling-failed }} | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| DSPY_MODEL: ${{ steps.secrets.outcome == 'success' && 'gpt-6-luna' || '' }} | ||
| PORTKEY_API_KEY_OPENAI: ${{ fromJSON(steps.secrets.outputs.vault || '{}').PORTKEY_API_KEY_OPENAI }} | ||
| UV_INDEX_REPOX_USERNAME: ${{ steps.secrets.outputs.vault && format('vault-{0}', fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ROLE) || '' }} | ||
| UV_INDEX_REPOX_PASSWORD: ${{ fromJSON(steps.secrets.outputs.vault || '{}').ARTIFACTORY_ACCESS_TOKEN }} | ||
|
|
||
| plugin-qa: | ||
| strategy: | ||
|
|
@@ -220,6 +234,7 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| submodules: recursive | ||
| - uses: jdx/mise-action@90f833d396d0cc3674b631d2d225e306476c303a # v5.2.10 | ||
| with: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ concurrency: | |
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| ruling-diff-comment: | ||
|
|
@@ -39,10 +40,15 @@ jobs: | |
| fetch-depth: 0 | ||
| submodules: true | ||
|
|
||
| - name: Install uv | ||
| uses: step-security/setup-uv@b49aac5576b90039e3e427495dda1a21aba6aaec # v10.3.3 | ||
| - name: Get enhancer secrets | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here about failure propagations |
||
| id: secrets | ||
| continue-on-error: true | ||
|
gitar-bot[bot] marked this conversation as resolved.
Resolved
|
||
| uses: SonarSource/vault-action-wrapper@v3 | ||
| with: | ||
| enable-cache: true | ||
| secrets: | | ||
| development/kv/data/portkey/code-quality/ruling-test-unification api_key | PORTKEY_API_KEY_OPENAI; | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN; | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader role | ARTIFACTORY_ROLE; | ||
|
|
||
| - name: Post ruling diff comment | ||
| uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@master | ||
|
|
@@ -54,3 +60,7 @@ jobs: | |
| sources-root: 'its/sources' | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| DSPY_MODEL: ${{ steps.secrets.outcome == 'success' && 'gpt-6-luna' || '' }} | ||
| PORTKEY_API_KEY_OPENAI: ${{ fromJSON(steps.secrets.outputs.vault || '{}').PORTKEY_API_KEY_OPENAI }} | ||
| UV_INDEX_REPOX_USERNAME: ${{ steps.secrets.outputs.vault && format('vault-{0}', fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ROLE) || '' }} | ||
| UV_INDEX_REPOX_PASSWORD: ${{ fromJSON(steps.secrets.outputs.vault || '{}').ARTIFACTORY_ACCESS_TOKEN }} | ||
Uh oh!
There was an error while loading. Please reload this page.