diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 85901ce7..52314965 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -1,7 +1,7 @@ name: Auto Author Assign on: - pull_request_target: + pull_request: types: [ opened, reopened ] permissions: @@ -9,6 +9,7 @@ permissions: jobs: assign-author: + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: toshimaru/auto-author-assign@v2.1.0 diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index 3ca867b0..90d9c75c 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -7,7 +7,7 @@ on: - edited - closed - reopened - pull_request_target: + pull_request: types: - opened - edited @@ -20,6 +20,7 @@ on: jobs: check: + if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: # z0al/dependent-issues@v1.5.2 targets Node.js 20; allow it to run on