Closed VolodymyrFesenko closed 1 year ago
I'm trying to get repository details as per https://docs.github.com/en/rest/repos/repos#get-a-repository Using a slightly modified example from the README:
steps: - uses: octokit/request-action@v2.x id: get_latest_release with: route: GET /repos/{owner}/{repo}/ owner: octokit repo: request-action env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I get:
Run octokit/request-action@v2.x GET /repos/{owner}/{repo}/ > owner: octokit > repo: request-action > mediaType: [object Object] < 404 288ms Error: Not Found
Debug log:
##[debug]Evaluating: secrets.GITHUB_TOKEN ##[debug]Evaluating Index: ##[debug]..Evaluating secrets: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'GITHUB_TOKEN' ##[debug]=> '***' ##[debug]Result: '***' ##[debug]Evaluating condition for step: 'Run octokit/request-action@v[2](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:2).x' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: Run octokit/request-action@v2.x ##[debug]Loading inputs Warning: Unexpected input(s) 'owner', 'repo', valid inputs are ['route', 'mediaType'] ##[debug]Loading env Run octokit/request-action@v2.x GET /repos/{owner}/{repo}/ > owner: octokit > repo: request-action > mediaType: [object Object] ##[debug]route: 'GET /repos/{owner}/{repo}/' ##[debug]parameters: { owner: 'octokit', repo: 'request-action', mediaType: {} } ##[debug]parsed request options: { ##[debug] method: 'GET', ##[debug] headers: { ##[debug] accept: 'application/vnd.github.v[3](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:3)+json', ##[debug] 'user-agent': 'octokit-action.js/[4](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:4).0.8 octokit-core.js/4.0.[5](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:5) Node.js/1[6](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:6).13.0 (linux; x64)' ##[debug] }, ##[debug] request: { agent: undefined, hook: [Function: bound bound register] }, ##[debug] data: undefined, ##[debug] url: 'https://api.github.com/repos/octokit/request-action/' ##[debug]} < 404 28[7](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:7)ms ##[debug]RequestError [HttpError]: Not Found ##[debug] at /home/runner/work/_actions/octokit/request-action/v2.x/dist/index.js:10[8](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:8)5[9](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:9):21 ##[debug] at processTicksAndRejections (node:internal/process/task_queues:96:5) ##[debug] at async main (/home/runner/work/_actions/octokit/request-action/v2.x/dist/index.js:[10](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:10)77:39) { ##[debug] status: 404, ##[debug] response: { ##[debug] url: 'https://api.github.com/repos/octokit/request-action/', ##[debug] status: 404, ##[debug] headers: { ##[debug] 'access-control-allow-origin': '*', ##[debug] 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset', ##[debug] connection: 'close', ##[debug] 'content-encoding': 'gzip', ##[debug] 'content-security-policy': "default-src 'none'", ##[debug] 'content-type': 'application/json; charset=utf-8', ##[debug] date: 'Wed, 02 Nov 2022 20:05:47 GMT', ##[debug] 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', ##[debug] server: 'GitHub.com', ##[debug] 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', ##[debug] 'transfer-encoding': 'chunked', ##[debug] vary: 'Accept-Encoding, Accept, X-Requested-With', ##[debug] 'x-content-type-options': 'nosniff', ##[debug] 'x-frame-options': 'deny', ##[debug] 'x-github-media-type': 'github.v3; format=json', ##[debug] 'x-github-request-id': '07C1:4421:4E83398:5073FB8:6362CD9B', ##[debug] 'x-ratelimit-limit': '15000', ##[debug] 'x-ratelimit-remaining': '14986', ##[debug] 'x-ratelimit-reset': '1667421698', ##[debug] 'x-ratelimit-resource': 'core', ##[debug] 'x-ratelimit-used': '14', ##[debug] 'x-xss-protection': '0' ##[debug] }, ##[debug] data: { ##[debug] message: 'Not Found', ##[debug] documentation_url: 'https://docs.github.com/rest' ##[debug] } ##[debug] }, ##[debug] request: { ##[debug] method: 'GET', ##[debug] url: 'https://api.github.com/repos/octokit/request-action/', ##[debug] headers: { ##[debug] accept: 'application/vnd.github.v3+json', ##[debug] 'user-agent': 'octokit-action.js/4.0.8 octokit-core.js/4.0.5 Node.js/16.[13](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:13).0 (linux; x64)', ##[debug] authorization: 'token [REDACTED]' ##[debug] }, ##[debug] request: { agent: undefined, hook: [Function: bound bound register] } ##[debug] } ##[debug]} Error: Not Found ##[debug]Node Action run completed with exit code 1 ##[debug]Set output status = [40](https://github.com/SnowSoftwareGlobal/devops-github-workflows/actions/runs/3380752933/jobs/5613892047#step:3:41)4 ##[debug]Finishing: Run octokit/request-action@v2.x
I'm trying to get repository details as per https://docs.github.com/en/rest/repos/repos#get-a-repository Using a slightly modified example from the README:
I get:
Debug log: