actions / actions/toolkit

Possible to access GitHub Actions contexts in general?

Open
#599 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

GitHub Actions provides various contexts, such as github, job, runner, which can be accessed from various places in a workflow. Is it possible to access these contexts with this toolkit too?

From what I have seen, only a part of the github context can be accessed through the github.context object in the @actions/github package. However, this is not exactly identical to the github context, and also all the other contexts, as listed here, don't seem to be accessible.

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

Read the linked GitHub Actions context reference and the @actions/github package, starting with the existing github.context object. Compare the listed contexts with what the toolkit exposes; completion should establish the supported scope and how the requested contexts are accessed, with no test named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, github-actions, typescript
Domain
ci-cd, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.