Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

The `runner.environment` context is shown as invalid in this extension.

Open
#428 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by reproducing the supplied workflow snippet in the extension and inspect the context-validation path that produces the Problems-panel warning. The work is done when runner.environment is recognized according to the linked GitHub Actions runner-context documentation and the warning no longer appears for this expression.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
When we use the runner.environment context listed in official document, this extension reports "Context access might be invalid".

To Reproduce
Steps to reproduce the behavior:

  1. With this workflow '...'
steps:
  - if: ${{ runner.environment == 'github-hosted' }}
    run: echo "This is a ${{ runner.environment }} runner"
  1. Do this '...'

Open the "Problems" Panel.

  1. See error\
Context access might be invalid: environment

Expected behavior
The runner.environment context listed in official document can be recognized well by this extension.

Screenshots
image

Extension Version
v0.27.0

Additional context
Add any other context about the problem here.

Dominant language
TypeScript
Stars
661
Forks
214
PR merge metrics
No merged PRs in 30d

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.

More from github/vscode-github-actions

All issues in github/vscode-github-actions

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.