You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,6 +93,8 @@ Subsequent actions will have access to the following outputs:
92
93
**Note:** By default, these outputs will only be populated if the target Pull Request was opened by Dependabot and contains
93
94
**only** Dependabot-created commits. To override, see `skip-commit-verification` / `skip-verification`.
94
95
96
+
For workflows initiated by Dependabot (`github.actor == 'dependabot[bot]'`) using the `pull_request_target` event, if the base ref of the pull request was created by Dependabot (`github.event.pull_request.user.login == 'dependabot[bot]'`), the `GITHUB_TOKEN` will be read-only and secrets are not available.
97
+
95
98
This metadata can be used along with Action's [expression syntax](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#functions) and the [GitHub CLI](https://github.com/cli/cli) to create
96
99
useful automation for your Dependabot PRs.
97
100
@@ -102,18 +105,18 @@ have a permissive auto-approval on all Dependabot PRs like so:
102
105
103
106
```yaml
104
107
name: Dependabot auto-approve
105
-
on: pull_request_target
108
+
on: pull_request
106
109
permissions:
107
110
pull-requests: write
108
111
jobs:
109
112
dependabot:
110
113
runs-on: ubuntu-latest
111
114
# Checking the author will prevent your Action run failing on non-Dependabot PRs
0 commit comments