How can a GitHub Action detect if it is running on ARC? #2879
Unanswered
ashishkurmi
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are building a security platform to harden self-hosted ARC and GitHub-hosted runners.
For this, we have implemented a GitHub Action (Harden-Runner).
This Action needs to run different code on self-hosted (ARC runners) vs. GitHub-Hosted runners.
Is there a way to detect if the Action is running on ARC? We currently rely on the
GITHUB_ACTIONS_RUNNER_EXTRA_USER_AGENT
environment variable, and I want to confirm if that is a good approach.Beta Was this translation helpful? Give feedback.
All reactions