Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@

name: PR Validation (Run Assessment)

# Surface the validated PR in the Actions run list so a maintainer can tell at a
# glance which PR each run targeted (pr_number is a user-supplied dispatch input).
run-name: "PR Validation — PR #${{ inputs.pr_number }}"

on:
workflow_dispatch:
inputs:
Expand All @@ -55,7 +59,7 @@ on:
pillar:
description: 'Pillar'
required: false
default: 'AI'
default: 'All'
type: choice
options:
- All
Expand Down Expand Up @@ -119,8 +123,26 @@ jobs:
"RUN_SHA=$sha" | Out-File -FilePath $env:GITHUB_ENV -Append
"RUN_BRANCH=$branch" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Record validated PR in run summary
shell: pwsh
run: |
# Write a short, clickable summary so maintainers can jump straight to
# the validated PR from the run page. Only the user-supplied PR number
# and public repo/branch/SHA are included — no secrets or report paths.
$repo = '${{ github.repository }}'
$pr = '${{ inputs.pr_number }}'
$lines = @(
'## Validated PR',
'',
"Pull request: [#$pr](https://github.com/$repo/pull/$pr)",
"Repository: ``$repo``",
"Branch: ``$($env:RUN_BRANCH)``",
"Commit: ``$($env:RUN_SHA)``"
)
$lines -join "`n" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append

- name: Azure login (Workload Identity Federation)
uses: azure/login@v2
uses: azure/login@v3
with:
client-id: ${{ env.AZURE_CLIENT_ID }}
tenant-id: ${{ env.AZURE_TENANT_ID }}
Expand Down Expand Up @@ -235,7 +257,7 @@ jobs:
# diagnostic report still uploads. Report files live on the runner disk and
# are untouched by re-login.
if: always() && env.REPORT_PATH != ''
uses: azure/login@v2
uses: azure/login@v3
with:
client-id: ${{ env.AZURE_CLIENT_ID }}
tenant-id: ${{ env.AZURE_TENANT_ID }}
Expand Down
Loading