Skip to content

Commit

Permalink
pull_request_target -> pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Aug 26, 2024
1 parent af75c3e commit 9e29706
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Create a workflow file that contains a step that uses: `dependabot/fetch-metadat
```yaml
-- .github/workflows/dependabot-prs.yml
name: Dependabot Pull Request
on: pull_request_target
on: pull_request
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
jobs:
build:
Expand Down Expand Up @@ -103,7 +103,7 @@ have a permissive auto-approval on all Dependabot PRs like so:

```yaml
name: Dependabot auto-approve
on: pull_request_target
on: pull_request
permissions:
pull-requests: write
jobs:
Expand Down Expand Up @@ -137,7 +137,7 @@ For example, if you want to automatically merge all patch updates to Rails:
```yaml
name: Dependabot auto-merge
on: pull_request_target
on: pull_request
permissions:
pull-requests: write
contents: write
Expand Down Expand Up @@ -165,7 +165,7 @@ For example, if you want to flag all production dependency updates with a label:
```yaml
name: Dependabot auto-label
on: pull_request_target
on: pull_request
permissions:
pull-requests: write
issues: write
Expand Down

0 comments on commit 9e29706

Please sign in to comment.