Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance telemetry to record unique workflow run IDs and identify GitHub/Self-hosted runner #478

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

MoChilia
Copy link
Member

https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/variables

  • RUNNER_ENVIRONMENT: The environment of the runner executing the job. Possible values are: github-hosted for GitHub-hosted runners provided by GitHub, and self-hosted for self-hosted runners configured by the repository owner.
  • GITHUB_RUN_ID: A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run. For example, 1658821493.
    https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/variables

An example of the telemetry recording:

GITHUBACTIONS/AzureLogin@v2_aaaaaaaaaaaaaaaaaaaaa_github-hosted_10176215932

@MoChilia MoChilia requested a review from YanaXu July 31, 2024 08:02
@MoChilia MoChilia self-assigned this Jul 31, 2024
@YanaXu YanaXu merged commit 3cf32af into master Aug 1, 2024
19 checks passed
@YanaXu YanaXu deleted the csy/telemetry-0731 branch August 1, 2024 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants