Only use github.token on github.com by ChristopherHX · Pull Request #443 · actions/setup-python

@ChristopherHX

This expression evaluates to `''` if called from GHES hosted elsewhere
You can still provide your token on both github.com and GHES

@ChristopherHX requested a review from a team

June 27, 2022 08:25

@ChristopherHX

@brcrista

@brcrista

IvanZosimov

marko-zivic-93

@brcrista

@brcrista

marko-zivic-93

vsafonkin

@brcrista

brcrista

This was referenced

Sep 27, 2022

tdfacer pushed a commit to ifit/setup-python that referenced this pull request

Oct 7, 2025
* Only use github.token on github.com

This expression evaluates to `''` if called from GHES hosted elsewhere
You can still provide your token on both github.com and GHES

* Enshure blank result of expression and not false

* Revert "Revert "Pass the `token` input through on GHES (actions#427)" (actions#437)"

This reverts commit f05e25d.

* fix typo

* Add back the doc on the tool cache for self-hosted

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>