Skip to content

Commit

Permalink
Merge branch 'main' into test_unsafe_change
Browse files Browse the repository at this point in the history
  • Loading branch information
justus-camp-microsoft committed Dec 16, 2024
2 parents bb1e42d + aa7ec2e commit 27f9040
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/unsafe-reviewers-clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged != true && github.event.action != 'closed'
steps:
- name: Checkout actions
- name: Checkout base repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout head repo
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
path: head-repo

- name: Run unsafe code review script
run: pip3 install -r .github/scripts/add_unsafe_reviewers/requirements.txt && python3 .github/scripts/add_unsafe_reviewers/add-unsafe-reviewers.py . "origin/${{ github.base_ref }}" --token "${{ secrets.GITHUB_TOKEN }}" --pull-request "${{ github.event.number }}"
run: pip3 install -r .github/scripts/add_unsafe_reviewers/requirements.txt && python3 .github/scripts/add_unsafe_reviewers/add-unsafe-reviewers.py ./head-repo "origin/${{ github.base_ref }}" --token "${{ secrets.GITHUB_TOKEN }}" --pull-request "${{ github.event.number }}"
shell: bash

0 comments on commit 27f9040

Please sign in to comment.