Skip to content

Commit

Permalink
docs: 📝 add warning about using self hosted runners on a single host (#…
Browse files Browse the repository at this point in the history
…394) (#397)

Co-authored-by: Yan Xu <yanxu1@microsoft.com>
  • Loading branch information
AndreasAugustin and YanaXu authored Jan 11, 2024
1 parent 3f2bf91 commit 2d38cb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ jobs:
This action doesn't implement ```az logout``` by default at the end of execution. However, there is no way to tamper with the credentials or account information because the GitHub-hosted runner is on a VM that will get re-imaged for every customer run, which deletes everything. But if the runner is self-hosted (not provided by GitHub), it is recommended to manually log out at the end of the workflow, as shown below. More details on security of the runners can be found [here](https://docs.github.com/actions/learn-github-actions/security-hardening-for-github-actions#hardening-for-self-hosted-runners).

> [!WARNING]
> When using self hosted runners it is possible to have multiple runners on a single VM. Currently if your runners share a single user on the VM each runner will share the same credentials. That means in detail that each runner is able to change the permissions of another run. As a workaround we propose to use one single VM user per runner. If you start the runner as a service, do not forget to add the [optional user argument](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/configuring-the-self-hosted-runner-application-as-a-service#installing-the-service)

```yaml
- name: Azure CLI script
uses: azure/CLI@v1
Expand Down

0 comments on commit 2d38cb8

Please sign in to comment.