Skip to content

fix: add safe-output targets for pull_request_target context#37832

Merged
deyaaeldeen merged 1 commit intomainfrom
fix-safe-output-target
Mar 25, 2026
Merged

fix: add safe-output targets for pull_request_target context#37832
deyaaeldeen merged 1 commit intomainfrom
fix-safe-output-target

Conversation

@deyaaeldeen
Copy link
Copy Markdown
Member

With pull_request_target, the safe output handler can't auto-detect the PR context, causing all review comments to fail with:

Target is "triggering" but not running in pull request context, skipping review comment creation

This adds explicit target fields to create-pull-request-review-comment and submit-pull-request-review in all 6 review agent workflows, matching the pattern already used by mgmt-review.

Also upgrades compiled lock files from gh-aw v0.56.2 to v0.63.1.

Failing run: https://github.com/Azure/azure-sdk-for-js/actions/runs/23555872650

With pull_request_target, the safe output handler can't auto-detect
the PR context. Add explicit target fields to create-pull-request-review-comment
and submit-pull-request-review (matching mgmt-review pattern).

Also upgrades compiled lock files from gh-aw v0.56.2 to v0.63.1.

Failing run: https://github.com/Azure/azure-sdk-for-js/actions/runs/23555872650

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@deyaaeldeen deyaaeldeen requested a review from a team as a code owner March 25, 2026 18:45
Copilot AI review requested due to automatic review settings March 25, 2026 18:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 GitHub review-agent workflows to correctly emit “safe outputs” review comments when running under the pull_request_target event by explicitly setting the PR “target” number, and also refreshes the generated .lock.yml workflows to a newer gh-aw compiler/runtime version.

Changes:

  • Add explicit safe-outputs.*.target expressions to 6 review-agent workflow source files (*.md) so PR context is unambiguous under pull_request_target.
  • Re-compile corresponding workflow lock files with gh-aw v0.63.1 (schema v3), updating action versions, paths, and safe-outputs tool generation.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
.github/workflows/tester.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/tester.lock.yml Recompiled workflow (gh-aw v0.63.1) + embeds target into safe-outputs config.
.github/workflows/sentinel.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/scribe.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/scribe.lock.yml Recompiled workflow (gh-aw v0.63.1) + embeds target into safe-outputs config.
.github/workflows/dexter.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/dash.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/dash.lock.yml Recompiled workflow (gh-aw v0.63.1) + embeds target into safe-outputs config.
.github/workflows/archie.md Adds target to safe-output review comment + review submission handlers.
.github/workflows/archie.lock.yml Recompiled workflow (gh-aw v0.63.1) + embeds target into safe-outputs config.

Comment thread .github/workflows/tester.lock.yml
Comment thread .github/workflows/tester.lock.yml
Comment thread .github/workflows/archie.lock.yml
Comment thread .github/workflows/archie.lock.yml
Comment thread .github/workflows/dash.lock.yml
Comment thread .github/workflows/dash.lock.yml
Comment thread .github/workflows/scribe.lock.yml
Comment thread .github/workflows/scribe.lock.yml
@deyaaeldeen deyaaeldeen merged commit 5511b30 into main Mar 25, 2026
19 checks passed
@deyaaeldeen deyaaeldeen deleted the fix-safe-output-target branch March 25, 2026 21:44
@deyaaeldeen
Copy link
Copy Markdown
Member Author

Filed github/gh-aw#22957 for copilot feedback.

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.

3 participants