Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permission documentation for GITHUB_TOKEN #389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

actuallymentor
Copy link

@actuallymentor actuallymentor commented Sep 2, 2024

When following the docs verbatim, Github Actions fail with a 403 error since the default setting of the GITHUB_TOKEN is read-only.

Example log for googlability:

RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:84764:27
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createCheck (/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:87337:17)
    at async run (/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:93186:14) ***
  status: 403,
  response: ***
    url: 'https://api.github.com/repos/actuallymentor/couchcaster.app/check-runs',
    status: 403,
    headers: '...',
    data: ***
      message: 'Resource not accessible by integration',
      documentation_url: 'https://docs.github.com/rest/checks/runs#create-a-check-run',
      status: '403'
    ***
  ***,
  request: ***
    method: 'POST',
    url: '...',
    headers: ***
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-core.js/3.6.0 Node.js/20.13.1 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    ***,
    body: '...'

When following the docs verbatim, Github Actions fail with a `403` error since the default setting of the `GITHUB_TOKEN` is read-only.
Copy link

google-cla bot commented Sep 2, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@actuallymentor
Copy link
Author

Signed the CLA just now. Not sure how to retrigger the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant