question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should this work on PRs raised from forks?

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andrzejnovakcommented, Aug 4, 2020
1reaction
peter-evanscommented, Aug 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found