Skip to content

[CI] Harden GitHub automation inputs - #1761

Merged
vmoens merged 1 commit into
pytorch:mainfrom
peterdsharpe:agent/harden-github-automation
Aug 8, 2026
Merged

[CI] Harden GitHub automation inputs#1761
vmoens merged 1 commit into
pytorch:mainfrom
peterdsharpe:agent/harden-github-automation

Conversation

@peterdsharpe

Copy link
Copy Markdown
Contributor

Summary

  • Render PR-label guidance without treating PR metadata as a replacement program.
  • Limit flaky-report inputs to completed main push runs from the expected repository.
  • Keep branch-updating tdbot commands on same-repository PR branches.

Rationale

This makes the automation consistently distinguish repository-owned runs and branches from similarly named fork inputs while preserving the existing labels, comments, reports, and maintainer command flow.

Validation

  • GitHub workflow YAML validation
  • Python syntax checks
  • Focused mocked provenance and fork-branch checks
  • Repository-pinned ufmt and flake8 checks

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 8, 2026
@github-actions github-actions Bot added the CI label Aug 8, 2026
@vmoens
vmoens marked this pull request as ready for review August 8, 2026 19:43

@vmoens vmoens left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM thanks! Nothing to add

@vmoens
vmoens merged commit 32a837f into pytorch:main Aug 8, 2026
70 of 71 checks passed
@peterdsharpe
peterdsharpe deleted the agent/harden-github-automation branch August 8, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants