actions / actions/toolkit

using `github.token` with `@actions/github`

Open
#2,427 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

in the documentation it is specified that actions have access to the token using the token property in the github context, even without the user passing it as an input:
https://docs.github.com/en/actions/tutorials/authenticate-with-github_token#using-the-github_token-in-a-workflow

How would it be possible to access this using @actions/github, there is not property exported there?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the @actions/github entry point and compare its available exports with the linked GitHub Actions documentation about the github.token context. Clarify whether the token is accessible through @actions/github or must be passed separately, and document the supported usage and any limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.