Workflow doesn't work when pull_request is opened from a forked repo
See original GitHub issueI’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:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@alex-page I’ve added the troubleshooting steps in #75.
@dhruvkb yeah that is a good idea! Happy to review a PR.