mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
Pin actions from repos external to the PyTorch project to their shasums for security. This is a best practice as Git tags are not immutable. https://openssf.org/blog/2024/08/12/mitigating-attack-vectors-in-github-workflows/ Pull Request resolved: https://github.com/pytorch/pytorch/pull/152110 Approved by: https://github.com/seemethere, https://github.com/ZainRizvi
25 lines
811 B
YAML
25 lines
811 B
YAML
name: Auto Request Review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, ready_for_review]
|
|
jobs:
|
|
auto-request-review:
|
|
# Don't run on forked repos
|
|
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'pytorch' }}
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
name: Auto Request Review
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Request review based on files changes and/or groups the author belongs to
|
|
# v0.7.0
|
|
uses: necojackarc/auto-request-review@e08cdffa277d50854744de3f76230260e61c67f4 # v0.7.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
|
|
cancel-in-progress: true
|