diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index c98b8762..1208a5de 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,7 +9,7 @@ on: types: [opened, edited] discussion: types: [created] - pull_request: + pull_request_target: branches: [main] types: [opened, closed, synchronize, review_requested] @@ -18,9 +18,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Run Ultralytics Formatting - uses: ultralytics/actions@main + uses: ultralytics/actions@eb1201bd933b9f6096c64525ccaee3684c91bf14 with: - token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN}} + token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated labels: true # autolabel issues and PRs python: true # format Python code and docstrings prettier: true # format YAML, JSON, Markdown and CSS