crashappsec / chalk

Chalk allows you to follow code from development, through builds and into production.
https://crashoverride.com/
GNU General Public License v3.0
322 stars 11 forks source link

Github Actions BUILD_URI does not include job id #318

Open miki725 opened 4 weeks ago

miki725 commented 4 weeks ago

as per https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables we link to action id:

$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID

however that omits the job id of the action run and goes to the summary page. if there are multiple jobs within that workflow its very hard to say from which job report is correlated to

doesnt look like its trivial to add job id though as its not exposed as env var and there are other things to consider:

some useful urls

https://stackoverflow.com/questions/71240338/obtain-job-id-from-a-workflow-run-using-contexts https://github.com/orgs/community/discussions/123637 https://github.com/orgs/community/discussions/8945