generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
I found the workflow triggered forked pull request can not write status checks if the pull request and workflow meets all these conditions:
- the event that triggers the workflow is a pull_request.
- We can add
checks:writeto permissions if the event ispull_request_target, but it checkouts HEAD revision, not merged revision.
- We can add
- pull request is sent from forked repository.
- The repository is public.
- Private repository can write if jobs has permissions & repository owner allows to
Send write tokens to workflows from pull requests: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#enabling-workflows-for-forks-of-private-repositories
- Private repository can write if jobs has permissions & repository owner allows to
If the workflow meets all of the above conditions, it will fail with the following message:
Run kishikawakatsumi/xcresulttool@v1
Error: Resource not accessible by integration
It would be nice if this action could disable the writing of Status Checks in the inputs.
Reference
- My search (in Japanese): kana-rule.confで
k;やkqのようなセミコロン/qを含むルールを許可 mtgto/macSKK#120 (comment)
JeppeFyrstenborg and AlexPan1992
Metadata
Metadata
Assignees
Labels
No labels