Closed kd7lxl closed 3 years ago
Is this on a private repository? We do send requests using env.GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
in our tests, and they all passed. I'm not sure what broke either.
Can you please create a secret ACTIONS_STEP_DEBUG
and set it to 1
? That will enable debug logs
@gr2m I experienced a similar issue with a 'Not Found' error. For me, it looks like the repository parameter is not registering. I tested it out and if I have a setup like:
- name: GET REPO
uses: octokit/request-action@v2.x
id: getRepo
with:
route: GET /repos/{repo}
repo: ${{github.repository}}
mediaType: '{"Accept": application/vnd.github.v3+json}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I get the error, but if I replace the route to look like this without the repo
parameter:
route: GET /repos/${{github.repository}}
It works
It might be related to URL parameter encoding, see my comment here: https://github.com/octokit/request-action/issues/69#issuecomment-767094313
Can you try setting owner
/ repo
separately? The /
character in github.repository
is what is likely causing the problem here
Yes, that was it. Following https://github.com/octokit/request-action/commit/9736caa5f92400f09d9cdb3a26491aa9cc520a6b works. The workflow had not been updated with that usage change.
I'd recommend bumping more than just the patch version to indicate there was a breaking change.
I'd recommend bumping more than just the patch version to indicate there was a breaking change.
That change was not intentional, I'll try to fix/workaround it and push another version today
Thanks for clarifying the title!
In case you're still curious, here's the debug log: https://gist.github.com/kd7lxl/29ad1c2144692e49cc7067e2af634a87
Thanks! You can see the incorrect URL encoding of the repository owner/name
in https://gist.github.com/kd7lxl/29ad1c2144692e49cc7067e2af634a87#file-action-log-L102, that's why you get a 404
:tada: This issue has been resolved in version 2.0.26 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
We have a workflow that requests the list of files modified by a PR. Here's the code:
This stopped working when v2.0.25 was released. The error is
not found
:I looked at the diff and it's not obvious why it broke. I switched to
- uses: octokit/request-action@v2.0.24
and it started working again.