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.

Workflow doesn't work when pull_request is opened from a forked repo

See original GitHub issue

I’m trying to use your actions to automatically add a new pr to the project @alex-page .

Here is my workflow file:

name: Assign PullRequest to Project
on:
  pull_request:
    types: [opened, reopened]
jobs:
  assignToProject:
    name: Assign PullRequest to Project
    runs-on: ubuntu-latest
    steps:
      - name: Assign PullRequest to Project Linux command
        uses: technote-space/create-project-card-action@v1
        with:
          PROJECT: Linux command
          COLUMN: In progress
          GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}

When I open a pr myself, it works fine. Here is the log:

Assign PullRequest to Project Linux command1s
    repo-token: ***
Run alex-page/github-project-automation-plus@v0.2.4
  with:
    project: Linux command
    column: In progress
    repo-token: ***
✅ Card materialised into In progress in Linux command

When my friend opens a pr, it doesn’t work . Here is the log:

 Assign PullRequest to Project Linux command1s
    column: In progress
Run alex-page/github-project-automation-plus@v0.2.4
  with:
    project: Linux command
    column: In progress
##[error]Parameter token or opts.auth is required

Are there some things I forgot to configure or wrongly configured? Or does it mean that a pr opened from a forked repo cannot be automatically move into a project using this action?

Could you help me to solve this problem?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
dhruvkbcommented, Sep 18, 2021

@alex-page I’ve added the troubleshooting steps in #75.

1reaction
alex-pagecommented, Sep 17, 2021

@dhruvkb yeah that is a good idea! Happy to review a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github actions don't work for pull requests created that involve ...
Describe the bug. As explained in the following link, our github actions won't work correctly on PRs where a fork is involved:
Read more >
Cannot trigger GitHub Actions while pull request from a fork repo
Finally, I found a setting called "Run workflows from fork pull requests". Enable it will solve the problem. If the repo is under...
Read more >
Why doesn't my GitHub Action run automatically from a fork ...
GitHub Actions and Pull Requests with Bdougie#30minutestomergeA quick tour of specific GitHub Actions triggers and their use, plus a deep ...
Read more >
Troubleshooting why pull requests are not triggering jobs on ...
A user who submits a pull request to your repository from a fork, but no pipeline is triggered with the pull request. This...
Read more >
Fork your repository - Azure Repos | Microsoft Learn
This article addresses working with forks in Azure Repos Git ... such as an open source project might, we recommend the forking workflow....
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