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

Pull build environment information from GH and add this as labels/annotations #37

Open
garethjevans opened this issue Nov 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@garethjevans
Copy link
Contributor

garethjevans commented Nov 16, 2022

The variables available in an example build are:

SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar
GOROOT_1_[17](https://github.com/garethjevans/github-actions-poc/actions/runs/3478797333/jobs/5816585155#step:5:18)_X64=/opt/hostedtoolcache/go/1.17.13/x64
CONDA=/usr/share/miniconda
GITHUB_WORKSPACE=/home/runner/work/github-actions-poc/github-actions-poc
JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_fd0fe995-4bcb-488b-ab4d-1999807f52f6
GITHUB_ACTION=__run
JAVA_HOME=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.4-1/x64
GITHUB_RUN_NUMBER=46
RUNNER_NAME=Hosted Agent
GRADLE_HOME=/usr/share/gradle-7.5.1
XDG_CONFIG_HOME=/home/runner/.config
RUNNER_DEBUG=1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
ANT_HOME=/usr/share/ant
JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64
GITHUB_TRIGGERING_ACTOR=garethjevans
GITHUB_REF_TYPE=branch
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650
ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.1.8937393
BOOTSTRAP_HASKELL_NONINTERACTIVE=1
***
PIPX_BIN_DIR=/opt/pipx_bin
DEPLOYMENT_BASEPATH=/opt/runner
GITHUB_ACTIONS=true
ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/25.1.8937393
GITHUB_SHA=92b3984ba09da3c540db0267eeb4e36a67b4cc50
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu20
DOTNET_MULTILEVEL_LOOKUP=0
GITHUB_REF=refs/pull/15/merge
RUNNER_OS=Linux
GITHUB_REF_PROTECTED=false
HOME=/home/runner
GITHUB_API_URL=https://api.github.com
LANG=C.UTF-8
RUNNER_TRACKING_ID=github_8fd06599-e551-4b6b-8710-6372510007c0
RUNNER_ARCH=X64
RUNNER_TEMP=/home/runner/work/_temp
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_fd0fe995-4bcb-488b-ab4d-1999807f52f6
EDGEWEBDRIVER=/usr/local/share/edge_driver
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_fd0fe995-4bcb-488b-ab4d-1999807f52f6
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
INVOCATION_ID=6a820b3c022647378b4792c81ac14bc1
GITHUB_EVENT_NAME=pull_request
GITHUB_RUN_ID=3478797333
JAVA_HOME_17_X64=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.4-1/x64
ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.1.8937393
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_fd0fe995-4bcb-488b-ab4d-1999807f52f6
HOMEBREW_NO_AUTO_UPDATE=1
GITHUB_ACTOR=garethjevans
NVM_DIR=/home/runner/.nvm
SGX_AESM_ADDR=1
GITHUB_RUN_ATTEMPT=1
STATS_RDCL=true
ANDROID_HOME=/usr/local/lib/android/sdk
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
ACCEPT_EULA=Y
RUNNER_USER=runner
USER=runner
GITHUB_SERVER_URL=https://github.com
PIPX_HOME=/opt/pipx
GECKOWEBDRIVER=/usr/local/share/gecko_driver
CHROMEWEBDRIVER=/usr/local/share/chrome_driver
SHLVL=1
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
RUNNER_TOOL_CACHE=/opt/hostedtoolcache
ImageVersion=20221027.1
DOTNET_NOLOGO=1
GITHUB_REF_NAME=15/merge
GRAALVM_11_ROOT=/usr/local/graalvm/graalvm-ce-java11-22.3.0
GITHUB_JOB=default
XDG_RUNTIME_DIR=/run/user/1001
AZURE_EXTENSION_DIR=/opt/az/azcliextensions
PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG
GITHUB_REPOSITORY=garethjevans/github-actions-poc
ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.1.8937393
CHROME_BIN=/usr/bin/google-chrome
GOROOT_1_[18](https://github.com/garethjevans/github-actions-poc/actions/runs/3478797333/jobs/5816585155#step:5:19)_X64=/opt/hostedtoolcache/go/1.18.7/x64
GITHUB_RETENTION_DAYS=90
JOURNAL_STREAM=8:23174
RUNNER_WORKSPACE=/home/runner/work/github-actions-poc
LEIN_HOME=/usr/local/lib/lein
LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.9.10-standalone.jar
GITHUB_ACTION_REPOSITORY=
PATH=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.4-1/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
RUNNER_PERFLOG=/home/runner/perflog
GITHUB_BASE_REF=main
CI=true
SWIFT_PATH=/usr/share/swift/usr/bin
ImageOS=ubuntu20
GITHUB_REPOSITORY_OWNER=garethjevans
GITHUB_HEAD_REF=garethjevans-patch-1
GITHUB_ACTION_REF=
GOROOT_1_[19](https://github.com/garethjevans/github-actions-poc/actions/runs/3478797333/jobs/5816585155#step:5:20)_X64=/opt/hostedtoolcache/go/1.19.2/x64
GITHUB_WORKFLOW=supply-chain
DEBIAN_FRONTEND=noninteractive
GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_fd0fe995-4bcb-[48](https://github.com/garethjevans/github-actions-poc/actions/runs/3478797333/jobs/5816585155#step:5:49)8b-ab4d-1999807f[52](https://github.com/garethjevans/github-actions-poc/actions/runs/3478797333/jobs/5816585155#step:5:53)f6
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
_=/usr/bin/env

We should record some (not all) of these as labels/annotations on the created build resource.

@garethjevans garethjevans added the enhancement New feature or request label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant