Skip to content

runner property "environment" is not defined in object type #412

@acalcutt

Description

@acalcutt

I am trying to use runner.environment in my workflow, which works. However actionlint gives me the following error

.github/workflows/node-ci.yml:168:13: property "environment" is not defined in object type {arch: string; debug: string; name: string; os: string; temp: string; tool_cache: string} [expression]
    |
168 |         if: runner.environment == 'github-hosted'

Researching the reason why I notice running.environment has not yet been documented.
https://github.com/orgs/community/discussions/118413
github/docs#32443
so I am wondering if that is related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions