Closed oeed closed 1 year ago
It's not clear to me how map
is getting called, looking at the code for octokit/request-action
.
Can you try following the instructions here to enable debug logging? I'm wondering if that might help us to get more context.
I ended up using action-script which led me to discover that the GitHub token I was using didn't have access to the repo (got a 404), so it's likely something handling that incorrectly.
I was able to reproduce the issue with a minimal workflow file like this:
name: Download file without required permissions
on: workflow_dispatch
jobs:
download_file:
runs-on: ubuntu-latest
steps:
- uses: octokit/request-action@v2.x
id: download_file
with:
route: GET /repos/{owner}/{repo}/contents/README.md
mediaType: application/vnd.github.raw
owner: github
repo: github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I'll try to figure out what's going on.
I've got a fix for this now in #176! Thanks for reporting the issue.
It seems that, in fact, there is a way to do this - see https://github.com/octokit/request-action/pull/184.
:tada: This issue has been resolved in version 2.1.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
I'm trying to download the contents of a file from another repo and I'm getting a rather unhelpful error. Nothing I've tried seems to help.
Action: