question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose GITHUB_JOB_ID as an environment variable

See original GitHub issue

Describe the enhancement Expose GITHUB_JOB_ID as an environment variable to the running steps. We need this in order for a job to be able to self-identify itself and potentially send it’s own ID to a different service that would then use the GitHub API to perform actions (like check logs for instance).

Code Snippet It looks like we need to add job_id to the whitelist here --> https://github.com/actions/runner/blob/master/src/Runner.Worker/GitHubContext.cs

Not sure though, hence raising this issue

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:24
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
Evilweedcommented, Feb 9, 2022

Please expose, this is making our developers confused especially if the job was running with flag “continue-on-error” and is green but we need to for example link to this job in automatically generated comment that is added to PR :<

1reaction
chrispatcommented, Jun 3, 2020

That is the check_suite id. Depending on how you navigate sometimes you will get that URL. However, for slack I would recommend using the http://github.com/dentarg/actions-test/actions/runs/<GITHUB_RUN_ID>

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use GitHub Actions environment variables
This hands-on article discusses the environment variables available within GitHub Actions and when we should use them.
Read more >
How to use environment variables in Github Page?
To use environment variables, the general approach which is followed is to: Not expose them to the public; Keep it local at the...
Read more >
How to use environment variables and secrets ...
The env keyword is a dedicated property defined by the GitHub Actions to declare our variables. Better to use this one, if you...
Read more >
Working with GitHub Actions Environment Variables and ...
Defining an environment variable for one step is relatively simple. Open the .github/workflows/gatsby.yml file and add the following steps ...
Read more >
How to Manage GitHub Actions Environment Variables and ...
GitHub Actions environment variables encrypts the values you put in secrets, so they are not visible nor readable in the naked eye.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found