Skip to content

Commit 6c704eb

Browse files
committed
docs: clarify limitations of push-to-fork with restricted token
1 parent 88bf0de commit 6c704eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/concepts-guidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ How to use SSH (deploy keys) with create-pull-request action:
214214

215215
Instead of pushing pull request branches to the repository you want to update, you can push them to a fork of that repository.
216216
This allows you to employ the [principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege) by using a dedicated user acting as a [machine account](https://docs.github.com/en/github/site-policy/github-terms-of-service#3-account-requirements).
217-
This user has no access to the main repository.
217+
This user only has `read` access to the main repository.
218218
It will use their own fork to push code and create the pull request.
219+
Note that if you choose to use this method (not give the machine account `write` access to the repository) the following inputs cannot be used: `labels`, `assignees`, `reviewers`, `team-reviewers` and `milestone`.
219220

220221
1. Create a new GitHub user and login.
221222
2. Fork the repository that you will be creating pull requests in.

0 commit comments

Comments
 (0)