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
{{ message }}
Repository navigation
Commit ca06f43
Browse filesBrowse the repository at this point in the historyBrowse files
Refactor PS login to use a static param()-bound script (#607)
* Refactor PS login to use a static param()-bound script
* Update readme
* Add injection-safety test for federated token argv handling
---------
Co-authored-by: Maddison Das <272712104+MaddyMicrosoft@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,16 @@ Azure Login Action supports different ways of authentication with Azure.
57
57
> [!WARNING]
58
58
> Avoid using managed identity login on self-hosted runners in public repositories. Managed identities enable secure authentication with Azure resources and obtain Microsoft Entra ID tokens without the need for explicit credential management. Any user can open pull requests against your repository and access your self-hosted runners without credentials. See more details in [self-hosted runner security](https://docs.github.com/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#self-hosted-runner-security).
59
59
60
+
** **
61
+
62
+
> [!WARNING]
63
+
> Only pass values from `${{ secrets.* }}` into `client-id`, `tenant-id`, `subscription-id`, and `creds`. Do not pipe values from `${{ github.event.* }}` (pull request titles, issue comments, `workflow_dispatch` inputs, branch names, etc.) into these inputs. Untrusted values in these fields can allow attackers to influence the Azure identity the action logs in as.
64
+
65
+
** **
66
+
67
+
> [!WARNING]
68
+
> Only set `enable-AzPSSession: true` if your workflow runs Azure PowerShell (`Az.*`) cmdlets. If your workflow only uses the Azure CLI (`az ...`), leave `enable-AzPSSession` unset (the default is `false`). Enabling it launches an additional PowerShell login step that is unnecessary for CLI-only workflows.
69
+
60
70
## Supported Versions
61
71
62
72
Azure Login follows a major-version support model.
0 commit comments