-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No project was found" error #65
Comments
Hi, I think there is a missunderstanding in the documentation, sorry about that. Since the action run in a repo that belongs to the organisation and the project belong to the organisation as well you don't need a Personal Access Token. So you need to fix with If the action run from a personal repo and target an organisation project, then you need to generate a Personal Access Token with the Let me know if that fix your problem. Cheers, |
Thanks. I'm not running it from a personal repo, so instead of:
I should use:
is that right? I think I tried that and got another error before. |
@gilgongo yep exactly. Should work. Let me know how it goes. |
Unfortunately, it fails with EDIT: I've also tried it now with an organisation secret I created called ORG_SECRET:
And again got this:
|
you don't need to generate a token and add it to the repository secrets. Try this: on:
issues:
types: [opened]
pull_request:
types: [opened]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to Triage
steps:
- name: Put new issues and pull requests into triage
uses: srggrs/[email protected]
if: github.event.action == 'opened'
with:
project: 'https://github.com/orgs/jamulussoftware/projects/2'
column_name: 'Triage' |
When I try that, I get this I'm afraid:
I also set up a test organisation, and tried tha with MY_GITHUB_TOKEN but get the same thing:
|
I've hit a similar issue when trying to use a User project. So this config: with:
project: 'https://github.com/users/cpswan/projects/1' gets me to this log:
No such problems when I run the same workflow definition against an org project: with:
project: 'https://github.com/orgs/javagone/projects/1' |
I had similar issue, after a few test, my token didn't had enough privileges, so i add all privileges on the repo and it work Maybe you should specifies the exact privileges the token need to have for it to work |
I was running into this same issue. I tried https://github.com/actions/add-to-project, and it immediately gave me an error message that I needed to add the 'admin:org' and 'read:project' permissions to my PAT. It worked great once I updated my PAT, so I haven't bothered to come back and try to make it work here. Note: I am using one of the new Git org projects, which is still in beta, and it may require different permissions than the classic projects. |
I've tried everything in this thread: Repo token as env:
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Repo token as env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Custom PAT in my repo, configured per @day-jeff 's comment: env:
MY_GITHUB_TOKEN: ${{ secrets.ACTIONS_PAT }} Nothing works. I can't pivot to what Jeff highlighted because I want the ability to put a new PR/Issue into a column on the Project, not just label the PRs/issues :/ Any update on what works here? |
I have the same issue. I tried everything like you and nothing: |
Plus one. Same issues. In an org, both repo and action, using Results in:
And when changing to
🤔 |
me too |
1 similar comment
me too |
Is this ever solved or is there an alternative action I can use? |
me too |
1 similar comment
me too |
Hi, I'm getting the following error on an organization project. Can anyone tell me why it's not recognising the project?
The text was updated successfully, but these errors were encountered: