Skip to content

Commit 46e21c9

Browse files
committed
Add the pull_request_target permissions note
1 parent 9e29706 commit 46e21c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Subsequent actions will have access to the following outputs:
9393
**Note:** By default, these outputs will only be populated if the target Pull Request was opened by Dependabot and contains
9494
**only** Dependabot-created commits. To override, see `skip-commit-verification` / `skip-verification`.
9595

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+
9698
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
9799
useful automation for your Dependabot PRs.
98100

0 commit comments

Comments
 (0)