workflow-dispatch icon indicating copy to clipboard operation
workflow-dispatch copied to clipboard

"Error: not found" when triggering workflow in another repo

Open cjyar opened this issue 4 years ago • 4 comments

Repo org/A has this:

      uses: benc-uk/workflow-dispatch@v1
      with:
        workflow: CI
        token: ${{ secrets.WORKFLOW_PAT }}
        inputs: '{ "blah": "foo", "blurf": "bar" }'
        repo: org/B

When the workflow runs, I get this output:

Workflow id is: 4336344
Error: Not Found

cjyar avatar Apr 30 '21 20:04 cjyar

I think this was caused because the user that owned WORKFLOW_PAT had Read access instead of Write access.

It would be great if this action could provide better diagnostic output in that case.

cjyar avatar Apr 30 '21 20:04 cjyar

I confirm, I had the same problem To be more precise, the user owning the WORKFLOW_PAT must have write access on repository owning the workflow

Dcoutelle avatar May 11 '21 15:05 Dcoutelle

Thanks you both for leaving a comment, the lack of write was my problem as well. :)

Overall, I went with a more simple approach:

- run: gh workflow run --repo ${{ env.TEST_REPOSITORY }} ${{ env.TEST_WORKFLOW }}
  env:
    GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN_WORKFLOW_DISPATCH }}

till avatar Feb 03 '22 12:02 till

Hi All , am facing issue with dispatch workflow with inputs . not understand where i missed . can somebody please suggest me is there other to trigger with input Run benc-uk/workflow-dispatch@v1 Error: Not Found

kaluva-venky-mcd avatar Aug 24 '22 12:08 kaluva-venky-mcd