assign-one-project-github-action: "No project was found" error
Hi, I’m getting the following error on an organization project. Can anyone tell me why it’s not recognising the project?
on:
issues:
types: [opened]
pull_request:
types: [opened]
env:
MY_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/assign-one-project-github-action@1.2.0
if: github.event.action == 'opened'
with:
project: 'https://github.com/orgs/jamulussoftware/projects/2'
column_name: 'Triage'
Run srggrs/assign-one-project-github-action@1.2.0
/usr/bin/docker run --name srggrsassignoneprojectgithubaction120_1ceb6e --label 5588e4 --workdir /github/workspace --rm -e MY_GITHUB_TOKEN -e INPUT_PROJECT -e INPUT_COLUMN_NAME -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/jamulus/jamulus":"/github/workspace" srggrs/assign-one-project-github-action:1.2.0 "https://github.com/orgs/jamulussoftware/projects/2" "Triage"
No project was found.
jq: error (at <stdin>:4): Cannot index string with string "name"
INITIAL_COLUMN_ID is not found.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 11
- Comments: 18 (3 by maintainers)
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:
Plus one. Same issues.
In an org, both repo and action, using
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}.Results in:
And when changing to
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}, it results is:🤔
I’ve tried everything in this thread:
Repo token as
MY_GITHUB_TOKENRepo token as
GITHUB_TOKENCustom PAT in my repo, configured per @day-jeff 's comment:
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 an org-level private project on a public repo
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.