You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Marius Storhaug
committed
Fix install action host handling
Restrict release API requests to github.com and avoid forwarding a GHE token by default. Keep metadata and package downloads on the same supported host across every platform.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,14 +50,15 @@ jobs:
50
50
| ----- | -------- | ------- | ----------- |
51
51
| `Version` | `false` | `latest` | Desired PowerShell Core version (e.g. `7.4.1`, `7.6.0-preview.6`). Use `latest` to install the newest stable release (or newest prerelease when `Prerelease` is `true`). |
52
52
| `Prerelease` | `false` | `false` | Install a prerelease version. When `true` and `Version` is `latest`, resolves to the latest prerelease. Similar to `-Prerelease` on `Install-PSResource`. |
53
-
| `Token` | `false` | `${{ github.token }}` | Token used for GitHub API requests. Set to an empty string (`''`) for anonymous API calls. |
54
-
| `Host` | `false` | `github.com` | GitHub host used by the CLI/API path. Keep `github.com` for GitHub.com, or set your GHES hostname. |
53
+
| `Token` | `false` | `${{ github.token }}` on GitHub.com; empty elsewhere | Token used for GitHub API requests to `github.com`. Set to an empty string (`''`) for anonymous API calls. |
54
+
| `Host` | `false` | `github.com` | GitHub API host. Only `github.com` is supported because the action installs assets from the official `PowerShell/PowerShell` repository. |
55
55
56
56
## Secrets
57
57
58
-
This action does **not** require custom secrets by default because it uses `${{ github.token }}`.
58
+
This action does **not** require custom secrets on GitHub.com because it uses `${{ github.token }}`. On GitHub Enterprise Cloud with data residency, it defaults to anonymous access to avoid forwarding that instance's token to `github.com`.
59
59
60
-
If needed, provide `Token` with a custom PAT. To force anonymous API access, set `Token: ''`.
60
+
If needed, provide `Token` with a custom PAT for `github.com`. To force anonymous API access, set `Token: ''`.
61
+
Release metadata and installation packages are always fetched from the official `PowerShell/PowerShell` repository on `github.com`.
0 commit comments