Should this work on PRs raised from forks?
See original GitHub issueI tried to use this instead of the default GHA, because token takes the PAT token. So that I can run an action on a PR from fork, but I get the following message:
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
##[error]Bad credentials
Is this expected behaviour or should it work?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Allowing changes to a pull request branch created from a fork
For greater collaboration, you can allow commits on branches you've created from forks owned by your personal account.
Read more >GitHub Actions improvements for fork and pull request workflows
Today GitHub Actions shipped a series of features designed to improve your workflows when working with PRs from repository forks.
Read more >How to identity a PR coming from a forked repo?
This doesn't seem to work with PRs raised from a fork, however, because the repo seems to always be set to myorg/repo rather...
Read more >arXiv:2112.14464v1 [cs.SE] 29 Dec 2021
Abstract. Forking-based development has made it easier and straightforward for developers to contribute to open- source software (OSS).
Read more >Ability to configure default destination repository for PRs ... - Jira
2 - you should be able to set the default repo in the settings (enhancement) ... working in the fork having to change...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@peter-evans Indeed. I’ve complained successfully 😄 https://github.community/t/inconsistent-on-issue-behaviour/117189/16
A couple of new updates have been announced that could help here.
If your repository is private, you can now enable workflows from forks.
If your repository is public, there is a new
pull_request_target
event that is not subject to any token restrictions. I recommend using this event to comment on pull requests.