Skip to content

Document more default variables in Actions environment #40108

@janbrasna

Description

@janbrasna

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/reference/workflows-and-actions/variables#default-environment-variables

What part(s) of the article would you like to see updated?

According to actions/runner-images#7879 (comment) there are more default variables populated with values not available elsewhere.

I'd like to see some commitment to the env var stability of these by documenting them publicly, as a part of the feature.

Additional information

The GHA implicit "Set up job" step has a lot of valuable info in the log. A lot of these values would be helpful to access and print later on, use as caching keys, mention in user-facing error messages etc. — however are not available in any variable, context or expression:

Some previously undocumented values have been mentioned by GHA staff:

Can some SME chime in and consider documenting more similarly useful values? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamgithub_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions