diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 2cb1ff608b..19de940769 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -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: @@ -55,7 +59,7 @@ on: pillar: description: 'Pillar' required: false - default: 'AI' + default: 'All' type: choice options: - All @@ -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 }} @@ -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 }}