octokit / request-action

A GitHub Action to send arbitrary requests to GitHub's REST API
https://github.com/marketplace/actions/GitHub-API-Request
MIT License
363 stars 48 forks source link

[ASK]: What is GITHUB_TOKEN?? #238

Closed chanjungkim closed 1 year ago

chanjungkim commented 1 year ago

What happened?

I get this error:

Error: .github/workflows/android-ci.yml (Line: 37, Col: 24): Error: The template is not valid. .github/workflows/android-ci.yml (Line: 37, Col: 24): Error reading JToken from JsonReader. Path '', line 0, position 0.

I think this is because I didn't add GITHUB_TOKEN. Where can I get this token?

Versions

v2.x

Relevant log output

No response

Code of Conduct

kfcampbell commented 1 year ago

Hi @chanjungkim! You can find documentation about how to generate a GitHub Personal Access Token. Once you've generated a token with the proper permissions, you can add it as a GitHub Actions secret and pass it into your workflow.