Skip to content

Update pr validation inputs - #84742

Merged
akhera99 merged 1 commit into
dotnet:mainfrom
akhera99:update_branch_name_pr_val
Aug 4, 2026
Merged

Update pr validation inputs#84742
akhera99 merged 1 commit into
dotnet:mainfrom
akhera99:update_branch_name_pr_val

Conversation

@akhera99

@akhera99 akhera99 commented Aug 3, 2026

Copy link
Copy Markdown
Member
Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings August 3, 2026 21:11
@akhera99
akhera99 requested a review from a team as a code owner August 3, 2026 21:11
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PR validation GitHub Actions workflow to make github-script steps more robust by passing dynamic values through environment variables instead of interpolating workflow expressions directly into JavaScript source, and adds a guard to block PR source branches with certain characters.

Changes:

  • Pass step outputs into actions/github-script via env and read them with process.env (avoids expression interpolation inside JS).
  • Add validation that fails early if the PR source branch name contains a small set of disallowed characters.
  • Refactor the “Comment pipeline link” step to use env-provided parameters rather than embedding workflow expressions in the comment body.
Show a summary per file
File Description
.github/workflows/pr-validation.yml Uses env vars for github-script inputs and adds a branch-name character check before proceeding.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

Comment thread .github/workflows/pr-validation.yml
@akhera99
akhera99 merged commit a4f585c into dotnet:main Aug 4, 2026
5 of 6 checks passed
@jjonescz jjonescz added this to the 18.11 milestone Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants