You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem, including code/CLI snippet
I'd like to use the gitlab /job api to extract context about a running job as part of a more elaborate script.
The jobs api documentation for the /job call suggests that its possible to obtain a summary of the Job thats being executed for the current CI_JOB_TOKEN context.
As a tool developer
When my tool is invoked during a Ci/Cd Session
I want to use the gitlab-api to programatical extract context about the job process
So that I cannot be tricked by malicious users abusing the predefined variables
As a gitlab web service provider
When a user makes an API call to my service
and includes their CI_JOB_TOKEN as a secure parameter
I want to callback to the gitlab api to programatical extract additional required context about the job process
Specifications
python-gitlab version: 4.4.0
API version you are using (v3/v4): v4
Gitlab server version (or gitlab.com): 16.10
The text was updated successfully, but these errors were encountered:
warmfusion
changed the title
Feature: Get Job Tokens Job
Feature: Retrieve the job that generated a job token from /job api call
May 1, 2024
Description of the problem, including code/CLI snippet
I'd like to use the gitlab
/job
api to extract context about a running job as part of a more elaborate script.The jobs api documentation for the /job call suggests that its possible to obtain a summary of the Job thats being executed for the current CI_JOB_TOKEN context.
Expected Behavior
API Response
Taken from the gitlab documentation...
Use Case
As a tool developer
When my tool is invoked during a Ci/Cd Session
I want to use the gitlab-api to programatical extract context about the job process
So that I cannot be tricked by malicious users abusing the predefined variables
As a gitlab web service provider
When a user makes an API call to my service
and includes their CI_JOB_TOKEN as a secure parameter
I want to callback to the gitlab api to programatical extract additional required context about the job process
Specifications
The text was updated successfully, but these errors were encountered: