[{"data":1,"prerenderedAt":1831},["ShallowReactive",2],{"/blog/tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies":3,"navigation-en-us":1081,"banner-en-us":1516,"footer-en-us":1524,"blog-post-authors-en-us-Dan Rabinovitz":1771,"blog-related-posts-en-us-tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies":1786,"blog-share-wrapper-en-us":1811,"next-steps-en-us":1821},{"id":4,"title":5,"authors":6,"body":8,"category":1058,"date":1059,"description":1060,"extension":1061,"externalUrl":1062,"faq":1062,"featured":1063,"heroImage":1064,"hidePromo":1063,"meta":1065,"navigation":61,"path":1066,"seo":1067,"slug":1071,"stem":1072,"tags":1073,"template":1079,"updatedDate":1062,"__hash__":1080},"blogPosts/en-us/blog/tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies.md","Tutorial: Advanced use case for GitLab Pipeline Execution Policies",[7],"Dan Rabinovitz",{"type":9,"value":10,"toc":1055},"minimark",[11,21,24,32,35,38,864,867,870,883,892,900,908,926,933,940,943,959,978,1004,1011,1014,1023,1028,1051],[12,13,14,20],"p",{},[15,16,19],"a",{"href":17,"rel":18},"https://docs.gitlab.com/user/application_security/policies/pipeline_execution_policies/",[],"Pipeline execution policies"," are a newer addition to the GitLab DevSecOps platform and a powerful mechanism to enforce CI/CD jobs across applicable projects. They enable platform engineering or security teams to inject jobs into developers’ YAML pipeline definition files, guaranteeing that certain CI/CD jobs will execute no matter what a developer defines in their `.gitlab-ci.yml` file.",[12,22,23],{},"This article will explain how to utilize pipeline execution policies to create guardrails around the stages or jobs that a developer can use in their pipeline definition. In regulated environments, this may be necessary to ensure developers adhere to a standard set of jobs or stages in their GitLab pipeline. Any job or stage that a developer adds to their pipeline that does not adhere to a corporate standard will cause the pipeline to fail.",[12,25,26,27,31],{},"One example use case for pipeline execution policies is ensuring a security scanner job runs. Let’s say an organization has made an investment in a third-party security scanner and they have a requirement that the external scan runs before any merge is made into the main branch. Without a pipeline execution policy, a developer could easily skip this step by not including the required code in their ",[28,29,30],"code",{},".gitlab-ci.yml"," file.  With a pipeline execution policy in place, a security team can guarantee the external security scanning job executes regardless of how a developer defines their pipeline.",[12,33,34],{},"To use pipeline execution policies to enforce these restrictions requires two parts: a shell script to make calls to the GitLab API and the policy itself. This tutorial uses a bash script; if your runner uses a different scripting language, it is easy to adapt to other languages.",[12,36,37],{},"Here is the example shell script I will use for this exercise:",[39,40,45],"pre",{"className":41,"code":42,"language":43,"meta":44,"style":44},"language-bash shiki shiki-themes github-light","#!/bin/bash\n\necho \"Checking pipeline stages and jobs...\"\n\n# Pull the group access token from the environment variable\nGROUP_ACCESS_TOKEN=\"$PIPELINE_TOKEN\"\n\necho \"PROJECT_ID: $PROJECT_ID\"\necho \"PIPELINE_ID: $PIPELINE_ID\"\n\nif [ -z \"$GROUP_ACCESS_TOKEN\" ]; then  \n  echo \"GROUP_ACCESS_TOKEN (MR_GENERATOR) is not set\"\n  exit 1\nfi\n\nif [ -z \"$PROJECT_ID\" ]; then\n  echo \"PROJECT_ID is not set\"\n  exit 1\nfi\n\nif [ -z \"$PIPELINE_ID\" ]; then\n  echo \"PIPELINE_ID is not set\"\n  exit 1\nfi\n\n# Use the group access token for the API request\napi_url=\"$GITLAB_API_URL/projects/$PROJECT_ID/pipelines/$PIPELINE_ID/jobs\"\necho \"API URL: $api_url\"\n\n# Fetch pipeline jobs using the group access token\njobs=$(curl --silent --header \"PRIVATE-TOKEN: $GROUP_ACCESS_TOKEN\" \"$api_url\")\necho \"Fetched Jobs: $jobs\"\n\nif [[ \"$jobs\" == *\"404 Project Not Found\"* ]]; then\n  echo \"Failed to authenticate with GitLab API: Project not found\"\n  exit 1\nfi\n\n# Extract stages and jobs\npipeline_stages=$(echo \"$jobs\" | grep -o '\"stage\":\"[^\"]*\"' | cut -d '\"' -f 4 | sort | uniq | tr '\\n' ',')\npipeline_jobs=$(echo \"$jobs\" | grep -o '\"name\":\"[^\"]*\"' | cut -d '\"' -f 4 | sort | uniq | tr '\\n' ',')\n\necho \"Pipeline Stages: $pipeline_stages\"  \necho \"Pipeline Jobs: $pipeline_jobs\"\n\n# Check if pipeline stages are approved\nfor stage in $(echo $pipeline_stages | tr ',' ' '); do \n  echo \"Checking stage: $stage\"\n  if ! [[ \",$APPROVED_STAGES,\" =~ \",$stage,\" ]]; then\n    echo \"Stage $stage is not approved.\"\n    exit 1\n  fi\ndone\n\n# Check if pipeline jobs are approved \nfor job in $(echo $pipeline_jobs | tr ',' ' '); do\n  echo \"Checking job: $job\"\n  if ! [[ \",$APPROVED_JOBS,\" =~ \",$job,\" ]]; then\n    echo \"Job $job is not approved\"\n    exit 1\n  fi\ndone\n","bash","",[28,46,47,56,63,74,79,85,105,110,123,136,141,170,179,188,194,199,219,227,234,239,244,263,271,278,283,288,294,320,333,338,344,381,394,399,430,438,445,450,455,461,531,588,593,608,621,626,632,671,684,718,732,740,746,752,757,763,793,806,834,847,854,859],{"__ignoreMap":44},[48,49,52],"span",{"class":50,"line":51},"line",1,[48,53,55],{"class":54},"sAwPA","#!/bin/bash\n",[48,57,59],{"class":50,"line":58},2,[48,60,62],{"emptyLinePlaceholder":61},true,"\n",[48,64,66,70],{"class":50,"line":65},3,[48,67,69],{"class":68},"sYu0t","echo",[48,71,73],{"class":72},"sYBdl"," \"Checking pipeline stages and jobs...\"\n",[48,75,77],{"class":50,"line":76},4,[48,78,62],{"emptyLinePlaceholder":61},[48,80,82],{"class":50,"line":81},5,[48,83,84],{"class":54},"# Pull the group access token from the environment variable\n",[48,86,88,92,96,99,102],{"class":50,"line":87},6,[48,89,91],{"class":90},"sgsFI","GROUP_ACCESS_TOKEN",[48,93,95],{"class":94},"sD7c4","=",[48,97,98],{"class":72},"\"",[48,100,101],{"class":90},"$PIPELINE_TOKEN",[48,103,104],{"class":72},"\"\n",[48,106,108],{"class":50,"line":107},7,[48,109,62],{"emptyLinePlaceholder":61},[48,111,113,115,118,121],{"class":50,"line":112},8,[48,114,69],{"class":68},[48,116,117],{"class":72}," \"PROJECT_ID: ",[48,119,120],{"class":90},"$PROJECT_ID",[48,122,104],{"class":72},[48,124,126,128,131,134],{"class":50,"line":125},9,[48,127,69],{"class":68},[48,129,130],{"class":72}," \"PIPELINE_ID: ",[48,132,133],{"class":90},"$PIPELINE_ID",[48,135,104],{"class":72},[48,137,139],{"class":50,"line":138},10,[48,140,62],{"emptyLinePlaceholder":61},[48,142,144,147,150,153,156,159,161,164,167],{"class":50,"line":143},11,[48,145,146],{"class":94},"if",[48,148,149],{"class":90}," [ ",[48,151,152],{"class":94},"-z",[48,154,155],{"class":72}," \"",[48,157,158],{"class":90},"$GROUP_ACCESS_TOKEN",[48,160,98],{"class":72},[48,162,163],{"class":90}," ]; ",[48,165,166],{"class":94},"then",[48,168,169],{"class":90},"  \n",[48,171,173,176],{"class":50,"line":172},12,[48,174,175],{"class":68},"  echo",[48,177,178],{"class":72}," \"GROUP_ACCESS_TOKEN (MR_GENERATOR) is not set\"\n",[48,180,182,185],{"class":50,"line":181},13,[48,183,184],{"class":68},"  exit",[48,186,187],{"class":68}," 1\n",[48,189,191],{"class":50,"line":190},14,[48,192,193],{"class":94},"fi\n",[48,195,197],{"class":50,"line":196},15,[48,198,62],{"emptyLinePlaceholder":61},[48,200,202,204,206,208,210,212,214,216],{"class":50,"line":201},16,[48,203,146],{"class":94},[48,205,149],{"class":90},[48,207,152],{"class":94},[48,209,155],{"class":72},[48,211,120],{"class":90},[48,213,98],{"class":72},[48,215,163],{"class":90},[48,217,218],{"class":94},"then\n",[48,220,222,224],{"class":50,"line":221},17,[48,223,175],{"class":68},[48,225,226],{"class":72}," \"PROJECT_ID is not set\"\n",[48,228,230,232],{"class":50,"line":229},18,[48,231,184],{"class":68},[48,233,187],{"class":68},[48,235,237],{"class":50,"line":236},19,[48,238,193],{"class":94},[48,240,242],{"class":50,"line":241},20,[48,243,62],{"emptyLinePlaceholder":61},[48,245,247,249,251,253,255,257,259,261],{"class":50,"line":246},21,[48,248,146],{"class":94},[48,250,149],{"class":90},[48,252,152],{"class":94},[48,254,155],{"class":72},[48,256,133],{"class":90},[48,258,98],{"class":72},[48,260,163],{"class":90},[48,262,218],{"class":94},[48,264,266,268],{"class":50,"line":265},22,[48,267,175],{"class":68},[48,269,270],{"class":72}," \"PIPELINE_ID is not set\"\n",[48,272,274,276],{"class":50,"line":273},23,[48,275,184],{"class":68},[48,277,187],{"class":68},[48,279,281],{"class":50,"line":280},24,[48,282,193],{"class":94},[48,284,286],{"class":50,"line":285},25,[48,287,62],{"emptyLinePlaceholder":61},[48,289,291],{"class":50,"line":290},26,[48,292,293],{"class":54},"# Use the group access token for the API request\n",[48,295,297,300,302,304,307,310,312,315,317],{"class":50,"line":296},27,[48,298,299],{"class":90},"api_url",[48,301,95],{"class":94},[48,303,98],{"class":72},[48,305,306],{"class":90},"$GITLAB_API_URL",[48,308,309],{"class":72},"/projects/",[48,311,120],{"class":90},[48,313,314],{"class":72},"/pipelines/",[48,316,133],{"class":90},[48,318,319],{"class":72},"/jobs\"\n",[48,321,323,325,328,331],{"class":50,"line":322},28,[48,324,69],{"class":68},[48,326,327],{"class":72}," \"API URL: ",[48,329,330],{"class":90},"$api_url",[48,332,104],{"class":72},[48,334,336],{"class":50,"line":335},29,[48,337,62],{"emptyLinePlaceholder":61},[48,339,341],{"class":50,"line":340},30,[48,342,343],{"class":54},"# Fetch pipeline jobs using the group access token\n",[48,345,347,350,352,355,359,362,365,368,370,372,374,376,378],{"class":50,"line":346},31,[48,348,349],{"class":90},"jobs",[48,351,95],{"class":94},[48,353,354],{"class":90},"$(",[48,356,358],{"class":357},"s7eDp","curl",[48,360,361],{"class":68}," --silent",[48,363,364],{"class":68}," --header",[48,366,367],{"class":72}," \"PRIVATE-TOKEN: ",[48,369,158],{"class":90},[48,371,98],{"class":72},[48,373,155],{"class":72},[48,375,330],{"class":90},[48,377,98],{"class":72},[48,379,380],{"class":90},")\n",[48,382,384,386,389,392],{"class":50,"line":383},32,[48,385,69],{"class":68},[48,387,388],{"class":72}," \"Fetched Jobs: ",[48,390,391],{"class":90},"$jobs",[48,393,104],{"class":72},[48,395,397],{"class":50,"line":396},33,[48,398,62],{"emptyLinePlaceholder":61},[48,400,402,404,407,409,411,413,416,419,422,425,428],{"class":50,"line":401},34,[48,403,146],{"class":94},[48,405,406],{"class":90}," [[ ",[48,408,98],{"class":72},[48,410,391],{"class":90},[48,412,98],{"class":72},[48,414,415],{"class":94}," ==",[48,417,418],{"class":94}," *",[48,420,421],{"class":72},"\"404 Project Not Found\"",[48,423,424],{"class":94},"*",[48,426,427],{"class":90}," ]]; ",[48,429,218],{"class":94},[48,431,433,435],{"class":50,"line":432},35,[48,434,175],{"class":68},[48,436,437],{"class":72}," \"Failed to authenticate with GitLab API: Project not found\"\n",[48,439,441,443],{"class":50,"line":440},36,[48,442,184],{"class":68},[48,444,187],{"class":68},[48,446,448],{"class":50,"line":447},37,[48,449,193],{"class":94},[48,451,453],{"class":50,"line":452},38,[48,454,62],{"emptyLinePlaceholder":61},[48,456,458],{"class":50,"line":457},39,[48,459,460],{"class":54},"# Extract stages and jobs\n",[48,462,464,467,469,471,473,475,477,479,482,485,488,491,493,496,499,502,505,508,510,513,515,518,520,523,526,529],{"class":50,"line":463},40,[48,465,466],{"class":90},"pipeline_stages",[48,468,95],{"class":94},[48,470,354],{"class":90},[48,472,69],{"class":68},[48,474,155],{"class":72},[48,476,391],{"class":90},[48,478,98],{"class":72},[48,480,481],{"class":94}," |",[48,483,484],{"class":357}," grep",[48,486,487],{"class":68}," -o",[48,489,490],{"class":72}," '\"stage\":\"[^\"]*\"'",[48,492,481],{"class":94},[48,494,495],{"class":357}," cut",[48,497,498],{"class":68}," -d",[48,500,501],{"class":72}," '\"'",[48,503,504],{"class":68}," -f",[48,506,507],{"class":68}," 4",[48,509,481],{"class":94},[48,511,512],{"class":357}," sort",[48,514,481],{"class":94},[48,516,517],{"class":357}," uniq",[48,519,481],{"class":94},[48,521,522],{"class":357}," tr",[48,524,525],{"class":72}," '\\n'",[48,527,528],{"class":72}," ','",[48,530,380],{"class":90},[48,532,534,537,539,541,543,545,547,549,551,553,555,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586],{"class":50,"line":533},41,[48,535,536],{"class":90},"pipeline_jobs",[48,538,95],{"class":94},[48,540,354],{"class":90},[48,542,69],{"class":68},[48,544,155],{"class":72},[48,546,391],{"class":90},[48,548,98],{"class":72},[48,550,481],{"class":94},[48,552,484],{"class":357},[48,554,487],{"class":68},[48,556,557],{"class":72}," '\"name\":\"[^\"]*\"'",[48,559,481],{"class":94},[48,561,495],{"class":357},[48,563,498],{"class":68},[48,565,501],{"class":72},[48,567,504],{"class":68},[48,569,507],{"class":68},[48,571,481],{"class":94},[48,573,512],{"class":357},[48,575,481],{"class":94},[48,577,517],{"class":357},[48,579,481],{"class":94},[48,581,522],{"class":357},[48,583,525],{"class":72},[48,585,528],{"class":72},[48,587,380],{"class":90},[48,589,591],{"class":50,"line":590},42,[48,592,62],{"emptyLinePlaceholder":61},[48,594,596,598,601,604,606],{"class":50,"line":595},43,[48,597,69],{"class":68},[48,599,600],{"class":72}," \"Pipeline Stages: ",[48,602,603],{"class":90},"$pipeline_stages",[48,605,98],{"class":72},[48,607,169],{"class":90},[48,609,611,613,616,619],{"class":50,"line":610},44,[48,612,69],{"class":68},[48,614,615],{"class":72}," \"Pipeline Jobs: ",[48,617,618],{"class":90},"$pipeline_jobs",[48,620,104],{"class":72},[48,622,624],{"class":50,"line":623},45,[48,625,62],{"emptyLinePlaceholder":61},[48,627,629],{"class":50,"line":628},46,[48,630,631],{"class":54},"# Check if pipeline stages are approved\n",[48,633,635,638,641,644,647,649,652,655,657,659,662,665,668],{"class":50,"line":634},47,[48,636,637],{"class":94},"for",[48,639,640],{"class":90}," stage ",[48,642,643],{"class":94},"in",[48,645,646],{"class":90}," $(",[48,648,69],{"class":68},[48,650,651],{"class":90}," $pipeline_stages ",[48,653,654],{"class":94},"|",[48,656,522],{"class":357},[48,658,528],{"class":72},[48,660,661],{"class":72}," ' '",[48,663,664],{"class":90},"); ",[48,666,667],{"class":94},"do",[48,669,670],{"class":90}," \n",[48,672,674,676,679,682],{"class":50,"line":673},48,[48,675,175],{"class":68},[48,677,678],{"class":72}," \"Checking stage: ",[48,680,681],{"class":90},"$stage",[48,683,104],{"class":72},[48,685,687,690,693,695,698,701,704,707,710,712,714,716],{"class":50,"line":686},49,[48,688,689],{"class":94},"  if",[48,691,692],{"class":94}," !",[48,694,406],{"class":90},[48,696,697],{"class":72},"\",",[48,699,700],{"class":90},"$APPROVED_STAGES",[48,702,703],{"class":72},",\"",[48,705,706],{"class":94}," =~",[48,708,709],{"class":72}," \",",[48,711,681],{"class":90},[48,713,703],{"class":72},[48,715,427],{"class":90},[48,717,218],{"class":94},[48,719,721,724,727,729],{"class":50,"line":720},50,[48,722,723],{"class":68},"    echo",[48,725,726],{"class":72}," \"Stage ",[48,728,681],{"class":90},[48,730,731],{"class":72}," is not approved.\"\n",[48,733,735,738],{"class":50,"line":734},51,[48,736,737],{"class":68},"    exit",[48,739,187],{"class":68},[48,741,743],{"class":50,"line":742},52,[48,744,745],{"class":94},"  fi\n",[48,747,749],{"class":50,"line":748},53,[48,750,751],{"class":94},"done\n",[48,753,755],{"class":50,"line":754},54,[48,756,62],{"emptyLinePlaceholder":61},[48,758,760],{"class":50,"line":759},55,[48,761,762],{"class":54},"# Check if pipeline jobs are approved \n",[48,764,766,768,771,773,775,777,780,782,784,786,788,790],{"class":50,"line":765},56,[48,767,637],{"class":94},[48,769,770],{"class":90}," job ",[48,772,643],{"class":94},[48,774,646],{"class":90},[48,776,69],{"class":68},[48,778,779],{"class":90}," $pipeline_jobs ",[48,781,654],{"class":94},[48,783,522],{"class":357},[48,785,528],{"class":72},[48,787,661],{"class":72},[48,789,664],{"class":90},[48,791,792],{"class":94},"do\n",[48,794,796,798,801,804],{"class":50,"line":795},57,[48,797,175],{"class":68},[48,799,800],{"class":72}," \"Checking job: ",[48,802,803],{"class":90},"$job",[48,805,104],{"class":72},[48,807,809,811,813,815,817,820,822,824,826,828,830,832],{"class":50,"line":808},58,[48,810,689],{"class":94},[48,812,692],{"class":94},[48,814,406],{"class":90},[48,816,697],{"class":72},[48,818,819],{"class":90},"$APPROVED_JOBS",[48,821,703],{"class":72},[48,823,706],{"class":94},[48,825,709],{"class":72},[48,827,803],{"class":90},[48,829,703],{"class":72},[48,831,427],{"class":90},[48,833,218],{"class":94},[48,835,837,839,842,844],{"class":50,"line":836},59,[48,838,723],{"class":68},[48,840,841],{"class":72}," \"Job ",[48,843,803],{"class":90},[48,845,846],{"class":72}," is not approved\"\n",[48,848,850,852],{"class":50,"line":849},60,[48,851,737],{"class":68},[48,853,187],{"class":68},[48,855,857],{"class":50,"line":856},61,[48,858,745],{"class":94},[48,860,862],{"class":50,"line":861},62,[48,863,751],{"class":94},[12,865,866],{},"Let’s break this down a bit.",[12,868,869],{},"The first few lines of this code perform some sanity checks, ensuring that a pipeline ID, project ID, and group access token exist.",[871,872,873,877,880],"ul",{},[874,875,876],"li",{},"A GitLab pipeline ID is a unique numerical identifier that GitLab automatically assigns to each pipeline run.",[874,878,879],{},"A GitLab project ID is a unique numerical identifier assigned to each project in GitLab.",[874,881,882],{},"A GitLab group access token is a token that authenticates and authorizes access to resources at the group level in GitLab. This is in contrast to a GitLab personal access token (PAT), which is unique to each user.",[12,884,885,886,891],{},"The bulk of the work comes from the ",[15,887,890],{"href":888,"rel":889},"https://docs.gitlab.com/api/projects/",[],"GitLab Projects API"," call where the script requests the jobs for the specified pipeline. Once you have job information for the currently running pipeline, you can use a simple grep command to parse out stage and job names, and store them in variables for comparison. The last portion of the script checks to see if pipeline stages and jobs are on the approved list. Where do these parameters come from?",[12,893,894,895,899],{},"This is where ",[15,896,898],{"href":17,"rel":897},[],"GitLab Pipeline Execution Policies"," come into play. They enable injection of YAML code into a pipeline. How can we leverage injected YAML to execute this shell script?  Here’s a code snippet showing how to do this.",[39,901,906],{"className":902,"code":904,"language":905,"meta":44},[903],"language-text","## With this config, the goal is to create a pre-check job that evaluates the pipeline and fails the job/pipeline if any checks do not pass\n\nvariables:\n  GITLAB_API_URL: \"https://gitlab.com/api/v4\"\n  PROJECT_ID: $CI_PROJECT_ID\n  PIPELINE_ID: $CI_PIPELINE_ID\n  APPROVED_STAGES: \".pipeline-policy-pre,pre_check,build,test,deploy\"\n  APPROVED_JOBS: \"pre_check,build_job,test_job,deploy_job\"\n\npre_check:\n  stage: .pipeline-policy-pre\n  script:\n    - curl -H \"PRIVATE-TOKEN:${REPO_ACCESS_TOKEN}\" --url \"https://\u003Cgitlab_URL>/api/v4/projects/\u003Cproject_id>/repository/files/check_settings.sh/raw\" -o pre-check.sh\n    - ls -l\n    - chmod +x pre-check.sh\n    - DEBUG_MODE=false ./pre-check.sh  # Set DEBUG_MODE to true or false\n  allow_failure: true\n\n","text",[28,907,904],{"__ignoreMap":44},[12,909,910,911,914,915,918,919,921,922,925],{},"In this YAML snippet, we set a few variables used in the shell script. Most importantly, this is where approved stages and approved jobs are defined. After the ",[28,912,913],{},"variables"," section, we then add a new job to the ",[28,916,917],{},".pipeline-policy-pre"," stage. This is a reserved stage for pipeline execution policies and is guaranteed to execute before any stages defined in a ",[28,920,30],{}," file.  There is a corresponding ",[28,923,924],{},".pipeline-policy-post"," stage as well, though we will not be using it in this scenario.",[12,927,928,929,932],{},"The script portion of the job does the actual work. Here, we leverage a curl command to execute the shell script defined above. This example includes authentication if it’s located in a private repository. However, if it’s publicly accessible, you can forgo this authentication. The last line controls whether or not the pipeline will fail. In this example, the pipeline will continue. This is useful for testing – in practice, you would likely set ",[28,930,931],{},"allow_failure: false"," to cause the pipeline to fail. This is desired as the goal of this exercise is to not allow pipelines to continue execution if a developer adds a rogue job or stage.",[12,934,935,936,939],{},"To utilize this YAML, save it to a ",[28,937,938],{},".yml"," file in a repository of your choice. We’ll see how to connect it to a policy shortly.",[12,941,942],{},"Now, we have our script and our YAML to inject into a developer’s pipeline. Next, let’s see how to put this together using a pipeline execution policy.",[12,944,945,946,950,951,954,955,958],{},"Like creating other policies in GitLab, start by creating a new Pipeline Execution Policy by navigating to ",[947,948,949],"strong",{},"Secure > Policies"," in the left hand navigation menu. Then, choose ",[947,952,953],{},"New Policy"," at the top right, and select ",[947,956,957],{},"Pipeline Execution Policy"," from the policy creation options.",[12,960,961,962,965,966,969,970,973,974,977],{},"For this exercise, you can leave the ",[947,963,964],{},"Policy Scope"," set to the default options. In the ",[947,967,968],{},"Actions"," section, be sure to choose ",[947,971,972],{},"Inject"," and select the project and file where you’ve saved your YAML code snippet. Click on ",[947,975,976],{},"Update via Merge Request"," at the very bottom to create an MR that you can then merge into your project.",[12,979,980,981,984,985,990,991,996,997,1000,1001,1003],{},"If this is your first security policy, clicking on ",[947,982,983],{},"Merge"," in the MR will create a ",[15,986,989],{"href":987,"rel":988},"https://docs.gitlab.com/user/application_security/policies/vulnerability_management_policy/",[],"Security Policy Project",", which is a project to store all security policies. When implementing any type of security policy in a production environment, ",[15,992,995],{"href":993,"rel":994},"https://docs.gitlab.com/user/project/members/",[],"access to this project should be restricted"," so developers cannot make changes to security policies. In fact, you may also want to consider storing YAML code that’s used by pipeline execution policies in this project to restrict access as well, though this is not a requirement.",[998,999],"br",{},"\nExecuting a pipeline where this pipeline execution policy is enabled should result in the following output when you attempt to add an invalid stage to the project ",[28,1002,30],{}," file.",[12,1005,1006],{},[1007,1008],"img",{"alt":1009,"src":1010},"Output of attempting an invalid stage to project gitlab-ci.yml file","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750098102/Blog/Content%20Images/Blog/Content%20Images/image1_aHR0cHM6_1750098102394.png",[12,1012,1013],{},"While this use case is very focused on one aspect of security and compliance in your organization, this opens the door to other use cases. For example, you may want to make group-level variables accessible to every project within a group; this is possible with pipeline execution policies. Or, you may want to create a golden pipeline and have developers add to it. The possibilities are endless. GitLab customers are finding new and exciting ways to use this new functionality every day.",[12,1015,1016,1017,1022],{},"If you’re a GitLab Ultimate customer, try this out today and let us know how you’re using pipeline execution policies. Not a GitLab Ultimate customer? ",[15,1018,1021],{"href":1019,"rel":1020},"https://about.gitlab.com/free-trial/devsecops/",[],"Sign up for a free trial"," to get started.",[1024,1025,1027],"h2",{"id":1026},"read-more","Read more",[871,1029,1030,1037,1044],{},[874,1031,1032],{},[15,1033,1036],{"href":1034,"rel":1035},"https://about.gitlab.com/blog/how-to-integrate-custom-security-scanners-into-gitlab/",[],"How to integrate custom security scanners into GitLab",[874,1038,1039],{},[15,1040,1043],{"href":1041,"rel":1042},"https://about.gitlab.com/blog/integrate-external-security-scanners-into-your-devsecops-workflow/",[],"Integrate external security scanners into your DevSecOps workflow",[874,1045,1046],{},[15,1047,1050],{"href":1048,"rel":1049},"https://about.gitlab.com/blog/why-gitlab-is-deprecating-compliance-pipelines-in-favor-of-security-policies/",[],"Why GitLab is deprecating compliance pipelines in favor of security policies",[1052,1053,1054],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":44,"searchDepth":58,"depth":58,"links":1056},[1057],{"id":1026,"depth":58,"text":1027},"security","2025-01-22","Learn how new GitLab Ultimate functionality can enforce a standardized pipeline across an organization for improved compliance.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1750098083/Blog/Hero%20Images/Blog/Hero%20Images/AdobeStock_397632156_3Ldy1urjMStQCl4qnOBvE0_1750098083312.jpg",{},"/en-us/blog/tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies",{"title":5,"description":1060,"ogTitle":5,"ogDescription":1060,"noIndex":1063,"ogImage":1064,"ogUrl":1068,"ogSiteName":1069,"ogType":1070,"canonicalUrls":1068},"https://about.gitlab.com/blog/tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies","https://about.gitlab.com","article","tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies","en-us/blog/tutorial-advanced-use-case-for-gitlab-pipeline-execution-policies",[1058,1074,1075,1076,1077,1078],"tutorial","public sector","DevSecOps platform","CI/CD","features","BlogPost","X28UfI5LjR4nV7q3xufh396bts9TAycdKlyJSmVsvYk",{"logo":1082,"freeTrial":1087,"sales":1092,"login":1097,"items":1102,"search":1435,"minimal":1467,"duo":1486,"switchNav":1495,"pricingDeployment":1506},{"config":1083},{"href":1084,"dataGaName":1085,"dataGaLocation":1086},"/","gitlab logo","header",{"text":1088,"config":1089},"Get free trial",{"href":1090,"dataGaName":1091,"dataGaLocation":1086},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1093,"config":1094},"Request a demo",{"href":1095,"dataGaName":1096,"dataGaLocation":1086},"/request-a-demo/","sales",{"text":1098,"config":1099},"Sign in",{"href":1100,"dataGaName":1101,"dataGaLocation":1086},"https://gitlab.com/users/sign_in/","sign in",[1103,1188,1275,1280,1360,1413],{"text":1104,"left":61,"config":1105,"menu":1107},"Platform",{"dataNavLevelOne":1106},"platform",{"type":1108,"link":1109,"columns":1113,"feature":1177},"lists",{"text":1110,"config":1111},"Explore the Platform",{"href":1112,"dataGaName":1106,"dataGaLocation":1086},"/platform/",[1114,1136,1159],{"title":1115,"items":1116},"DevOps",[1117,1121,1126,1131],{"text":1077,"config":1118},{"href":1119,"dataGaLocation":1086,"dataGaName":1120},"/solutions/continuous-integration/","ci/cd",{"text":1122,"config":1123},"Source Code Management",{"href":1124,"dataGaLocation":1086,"dataGaName":1125},"/solutions/source-code-management/","source code management",{"text":1127,"config":1128},"Agile Delivery",{"href":1129,"dataGaLocation":1086,"dataGaName":1130},"/solutions/agile-delivery/","agile delivery",{"text":1132,"config":1133},"Artifact Management",{"href":1134,"dataGaLocation":1086,"dataGaName":1135},"/artifact-central/","artifact management",{"title":1137,"items":1138},"Security & Governance",[1139,1144,1149,1154],{"text":1140,"config":1141},"Application Security Testing",{"href":1142,"dataGaLocation":1086,"dataGaName":1143},"/solutions/application-security-testing/","application security testing",{"text":1145,"config":1146},"Governance & Compliance",{"href":1147,"dataGaLocation":1086,"dataGaName":1148},"/solutions/software-compliance/","governance and compliance",{"text":1150,"config":1151},"Secrets Management",{"href":1152,"dataGaLocation":1086,"dataGaName":1153},"/gitlab-secrets-manager/","secrets management",{"text":1155,"config":1156},"Supply Chain Security",{"href":1157,"dataGaLocation":1086,"dataGaName":1158},"/solutions/supply-chain/","supply chain security",{"title":1160,"items":1161},"Agentic AI & Context",[1162,1167,1172],{"text":1163,"config":1164},"Duo Agent Platform",{"href":1165,"dataGaLocation":1086,"dataGaName":1166},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1168,"config":1169},"Orbit Context Graph",{"href":1170,"dataGaLocation":1086,"dataGaName":1171},"/gitlab-orbit/","orbit",{"text":1173,"config":1174},"Visibility & Measurement",{"href":1175,"dataGaLocation":1086,"dataGaName":1176},"/solutions/visibility-measurement/","visibility and measurement",{"config":1178,"title":1181,"text":1182,"link":1183},{"background":1179,"textColor":1180},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1184,"config":1185},"Read the announcement",{"href":1186,"dataGaName":1187,"dataGaLocation":1086},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1189,"left":61,"config":1190,"menu":1192},"Solutions",{"dataNavLevelOne":1191},"solutions",{"type":1108,"link":1193,"columns":1197,"feature":1266},{"text":1194,"config":1195},"View all Solutions",{"href":1196,"dataGaName":1191,"dataGaLocation":1086},"/solutions/",[1198,1216,1234],{"title":1199,"items":1200},"Outcomes",[1201,1206,1211],{"text":1202,"config":1203},"DevOps Modernization",{"href":1204,"dataGaLocation":1086,"dataGaName":1205},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1207,"config":1208},"Security Modernization",{"href":1209,"dataGaLocation":1086,"dataGaName":1210},"/assessments/security-modernization-assessment/","security modernization",{"text":1212,"config":1213},"AI Modernization",{"href":1214,"dataGaLocation":1086,"dataGaName":1215},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1217,"items":1218},"By size",[1219,1224,1229],{"text":1220,"config":1221},"Enterprise",{"href":1222,"dataGaLocation":1086,"dataGaName":1223},"/enterprise/","enterprise",{"text":1225,"config":1226},"Small Business",{"href":1227,"dataGaLocation":1086,"dataGaName":1228},"/small-business/","small business",{"text":1230,"config":1231},"Startups",{"href":1232,"dataGaLocation":1086,"dataGaName":1233},"/solutions/startups/","startups",{"title":1235,"items":1236},"Industries",[1237,1242,1246,1251,1256,1261],{"text":1238,"config":1239},"Financial Services",{"href":1240,"dataGaLocation":1086,"dataGaName":1241},"/solutions/finance/","financial services",{"text":1243,"config":1244},"Public Sector",{"href":1245,"dataGaLocation":1086,"dataGaName":1075},"/solutions/public-sector/",{"text":1247,"config":1248},"Telecommunications",{"href":1249,"dataGaLocation":1086,"dataGaName":1250},"/solutions/telecommunications/","telecommunications",{"text":1252,"config":1253},"Automotive",{"href":1254,"dataGaLocation":1086,"dataGaName":1255},"/solutions/automotive/","automotive",{"text":1257,"config":1258},"Education",{"href":1259,"dataGaLocation":1086,"dataGaName":1260},"/solutions/education/","education",{"text":1262,"config":1263},"Aerospace",{"href":1264,"dataGaLocation":1086,"dataGaName":1265},"/solutions/aerospace/","aerospace",{"config":1267,"title":1268,"text":1269,"link":1270},{"background":1179,"textColor":1180},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1271,"config":1272},"Explore the standard",{"href":1273,"dataGaName":1274,"dataGaLocation":1086},"/gitlab-security-standard/","gitlab security standard",{"text":1276,"config":1277},"Pricing",{"href":1278,"dataGaName":1279,"dataGaLocation":1086,"dataNavLevelOne":1279},"/pricing/","pricing",{"text":1281,"config":1282,"menu":1284},"Resources",{"dataNavLevelOne":1283},"resources",{"type":1108,"link":1285,"columns":1289,"feature":1351},{"text":1286,"config":1287},"View all resources",{"href":1288,"dataGaName":1283,"dataGaLocation":1086},"/resources/",[1290,1323],{"title":1291,"items":1292},"Discover",[1293,1298,1303,1308,1313,1318],{"text":1294,"config":1295},"Docs",{"href":1296,"dataGaName":1297,"dataGaLocation":1086},"https://docs.gitlab.com/","docs",{"text":1299,"config":1300},"University",{"href":1301,"dataGaName":1302,"dataGaLocation":1086},"https://university.gitlab.com/","university",{"text":1304,"config":1305},"Demo Series",{"href":1306,"dataGaName":1307,"dataGaLocation":1086},"/gitlab-technical-demo-series/","demo series",{"text":1309,"config":1310},"Demo Hub",{"href":1311,"dataGaName":1312,"dataGaLocation":1086},"/demo-hub/","demo hub",{"text":1314,"config":1315},"Services",{"href":1316,"dataGaName":1317,"dataGaLocation":1086},"/services/","services",{"text":1319,"config":1320},"Well Architected",{"href":1321,"dataGaName":1322,"dataGaLocation":1086},"/resources/well-architected/","well architected",{"title":1324,"items":1325},"Connect",[1326,1331,1336,1341,1346],{"text":1327,"config":1328},"Blog",{"href":1329,"dataGaName":1330,"dataGaLocation":1086},"/blog/","blog",{"text":1332,"config":1333},"Community",{"href":1334,"dataGaName":1335,"dataGaLocation":1086},"/community/","community",{"text":1337,"config":1338},"Customers",{"href":1339,"dataGaName":1340,"dataGaLocation":1086},"/customers/","customers",{"text":1342,"config":1343},"Partners",{"href":1344,"dataGaName":1345,"dataGaLocation":1086},"/partners/","partners",{"text":1347,"config":1348},"Events",{"href":1349,"dataGaName":1350,"dataGaLocation":1086},"/events/","events",{"config":1352,"title":1353,"text":1354,"link":1355},{"background":1179,"textColor":1180},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1356,"config":1357},"Read the latest",{"href":1358,"dataGaName":1359,"dataGaLocation":1086},"/whats-new/","whats new",{"text":1361,"config":1362,"menu":1364},"Company",{"dataNavLevelOne":1363},"company",{"type":1108,"columns":1365},[1366],{"items":1367},[1368,1373,1378,1383,1388,1393,1398,1403,1408],{"text":1369,"config":1370},"About",{"href":1371,"dataGaName":1372,"dataGaLocation":1086},"/company/","about",{"text":1374,"config":1375,"footerGa":1377},"Jobs",{"href":1376,"dataGaName":349,"dataGaLocation":1086},"/jobs/",{"dataGaName":349},{"text":1379,"config":1380},"Press",{"href":1381,"dataGaName":1382,"dataGaLocation":1086},"/press/","press",{"text":1384,"config":1385},"Handbook",{"href":1386,"dataGaName":1387,"dataGaLocation":1086},"https://handbook.gitlab.com/","handbook",{"text":1389,"config":1390},"Leadership",{"href":1391,"dataGaName":1392,"dataGaLocation":1086},"/company/team/e-group/","leadership",{"text":1394,"config":1395},"Investor relations",{"href":1396,"dataGaName":1397,"dataGaLocation":1086},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1399,"config":1400},"Trust Center",{"href":1401,"dataGaName":1402,"dataGaLocation":1086},"/security/","trust center",{"text":1404,"config":1405},"AI Transparency Center",{"href":1406,"dataGaName":1407,"dataGaLocation":1086},"/ai-transparency-center/","ai transparency center",{"text":1409,"config":1410},"Newsletter",{"href":1411,"dataGaName":1412,"dataGaLocation":1086},"/company/contact/#contact-forms","newsletter",{"text":1414,"config":1415,"menu":1416},"Contact us",{"dataNavLevelOne":1363},{"type":1108,"columns":1417},[1418],{"items":1419},[1420,1425,1430],{"text":1421,"config":1422},"Talk to sales",{"href":1423,"dataGaName":1424,"dataGaLocation":1086},"/sales/","talk to sales",{"text":1426,"config":1427},"Support portal",{"href":1428,"dataGaName":1429,"dataGaLocation":1086},"https://support.gitlab.com/hc/en-us","support portal",{"text":1431,"config":1432},"Customer portal",{"href":1433,"dataGaName":1434,"dataGaLocation":1086},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1436,"login":1437,"suggestions":1444},"Close",{"text":1438,"link":1439},"To search repositories and projects, login to",{"text":1440,"config":1441},"gitlab.com",{"href":1100,"dataGaName":1442,"dataGaLocation":1443},"search login","search",{"text":1445,"default":1446},"Suggestions",[1447,1450,1453,1455,1459,1463],{"text":1448,"config":1449},"GitLab Duo Agent Platform",{"href":1165,"dataGaName":1448,"dataGaLocation":1443},{"text":1451,"config":1452},"Code Suggestions (AI)",{"href":1165,"dataGaName":1451,"dataGaLocation":1443},{"text":1077,"config":1454},{"href":1119,"dataGaName":1077,"dataGaLocation":1443},{"text":1456,"config":1457},"GitLab on AWS",{"href":1458,"dataGaName":1456,"dataGaLocation":1443},"/partners/technology-partners/aws/",{"text":1460,"config":1461},"GitLab on Google Cloud",{"href":1462,"dataGaName":1460,"dataGaLocation":1443},"/partners/technology-partners/google-cloud-platform/",{"text":1464,"config":1465},"Why GitLab?",{"href":1466,"dataGaName":1464,"dataGaLocation":1443},"/why-gitlab/",{"freeTrial":1468,"mobileIcon":1473,"desktopIcon":1478,"secondaryButton":1481},{"text":1469,"config":1470},"Start free trial",{"href":1471,"dataGaName":1091,"dataGaLocation":1472},"https://gitlab.com/-/trials/new/","nav",{"altText":1474,"config":1475},"Gitlab Icon",{"src":1476,"dataGaName":1477,"dataGaLocation":1472},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1474,"config":1479},{"src":1480,"dataGaName":1477,"dataGaLocation":1472},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1482,"config":1483},"Get Started",{"href":1484,"dataGaName":1485,"dataGaLocation":1472},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1487,"mobileIcon":1491,"desktopIcon":1493},{"text":1488,"config":1489},"Learn more about GitLab Duo",{"href":1165,"dataGaName":1490,"dataGaLocation":1472},"gitlab duo",{"altText":1474,"config":1492},{"src":1476,"dataGaName":1477,"dataGaLocation":1472},{"altText":1474,"config":1494},{"src":1480,"dataGaName":1477,"dataGaLocation":1472},{"button":1496,"mobileIcon":1501,"desktopIcon":1503},{"text":1497,"config":1498},"/switch",{"href":1499,"dataGaName":1500,"dataGaLocation":1472},"#contact","switch",{"altText":1474,"config":1502},{"src":1476,"dataGaName":1477,"dataGaLocation":1472},{"altText":1474,"config":1504},{"src":1505,"dataGaName":1477,"dataGaLocation":1472},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1507,"mobileIcon":1512,"desktopIcon":1514},{"text":1508,"config":1509},"Back to pricing",{"href":1278,"dataGaName":1510,"dataGaLocation":1472,"icon":1511},"back to pricing","GoBack",{"altText":1474,"config":1513},{"src":1476,"dataGaName":1477,"dataGaLocation":1472},{"altText":1474,"config":1515},{"src":1480,"dataGaName":1477,"dataGaLocation":1472},{"title":1517,"button":1518,"config":1522},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1184,"config":1519},{"href":1186,"dataGaName":1520,"dataGaLocation":1521},"orbit-ga-banner","global-banner",{"layout":1523,"disabled":1063},"release",{"data":1525},{"text":1526,"config":1527,"items":1532,"minimal":1760},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1528,"facebook":1529,"youtube":1530,"linkedin":1531},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1533,1581,1640,1687,1728],{"title":1276,"links":1534,"subMenu":1550},[1535,1540,1545],{"text":1536,"config":1537},"View plans",{"href":1278,"dataGaName":1538,"dataGaLocation":1539},"view plans","footer",{"text":1541,"config":1542},"Why Premium?",{"href":1543,"dataGaName":1544,"dataGaLocation":1539},"/pricing/premium/","why premium",{"text":1546,"config":1547},"Why Ultimate?",{"href":1548,"dataGaName":1549,"dataGaLocation":1539},"/pricing/ultimate/","why ultimate",[1551],{"title":1552,"links":1553},"Contact Us",[1554,1557,1559,1561,1566,1571,1576],{"text":1555,"config":1556},"Contact sales",{"href":1423,"dataGaName":1096,"dataGaLocation":1539},{"text":1426,"config":1558},{"href":1428,"dataGaName":1429,"dataGaLocation":1539},{"text":1431,"config":1560},{"href":1433,"dataGaName":1434,"dataGaLocation":1539},{"text":1562,"config":1563},"Status",{"href":1564,"dataGaName":1565,"dataGaLocation":1539},"https://status.gitlab.com/","status",{"text":1567,"config":1568},"Terms of use",{"href":1569,"dataGaName":1570,"dataGaLocation":1539},"/terms/","terms of use",{"text":1572,"config":1573},"Privacy statement",{"href":1574,"dataGaName":1575,"dataGaLocation":1539},"/privacy/","privacy statement",{"text":1577,"config":1578},"Cookie preferences",{"dataGaName":1579,"dataGaLocation":1539,"id":1580,"isOneTrustButton":61},"cookie preferences","ot-sdk-btn",{"title":1104,"links":1582,"subMenu":1598},[1583,1586,1588,1590,1592,1594],{"text":1584,"config":1585},"Explore the platform",{"href":1112,"dataGaName":1106,"dataGaLocation":1539},{"text":1163,"config":1587},{"href":1165,"dataGaName":1166,"dataGaLocation":1539},{"text":1077,"config":1589},{"href":1119,"dataGaName":1120,"dataGaLocation":1539},{"text":1168,"config":1591},{"href":1170,"dataGaName":1171,"dataGaLocation":1539},{"text":1150,"config":1593},{"href":1152,"dataGaName":1153,"dataGaLocation":1539},{"text":1595,"config":1596},"Why GitLab",{"href":1466,"dataGaName":1597,"dataGaLocation":1539},"why gitlab",[1599],{"title":1600,"links":1601},"Topics",[1602,1606,1611,1615,1620,1625,1630,1635],{"text":1077,"config":1603},{"href":1604,"dataGaName":1605,"dataGaLocation":1539},"/topics/ci-cd/","cicd",{"text":1607,"config":1608},"GitOps",{"href":1609,"dataGaName":1610,"dataGaLocation":1539},"/topics/gitops/","gitops",{"text":1115,"config":1612},{"href":1613,"dataGaName":1614,"dataGaLocation":1539},"/topics/devops/","devops",{"text":1616,"config":1617},"Version Control",{"href":1618,"dataGaName":1619,"dataGaLocation":1539},"/topics/version-control/","version control",{"text":1621,"config":1622},"DevSecOps",{"href":1623,"dataGaName":1624,"dataGaLocation":1539},"/topics/devsecops/","devsecops",{"text":1626,"config":1627},"Cloud Native",{"href":1628,"dataGaName":1629,"dataGaLocation":1539},"/topics/cloud-native/","cloud native",{"text":1631,"config":1632},"AI for Coding",{"href":1633,"dataGaName":1634,"dataGaLocation":1539},"/topics/devops/ai-for-coding/","ai for coding",{"text":1636,"config":1637},"Agentic AI",{"href":1638,"dataGaName":1639,"dataGaLocation":1539},"/topics/agentic-ai/","agentic ai",{"title":1189,"links":1641},[1642,1645,1648,1651,1654,1657,1659,1661,1663,1665,1667,1670,1672,1675,1679,1683],{"text":1643,"config":1644},"DevOps modernization",{"href":1204,"dataGaName":1205,"dataGaLocation":1539},{"text":1646,"config":1647},"Security modernization",{"href":1209,"dataGaName":1210,"dataGaLocation":1539},{"text":1649,"config":1650},"AI modernization",{"href":1214,"dataGaName":1215,"dataGaLocation":1539},{"text":1652,"config":1653},"Financial services",{"href":1240,"dataGaName":1241,"dataGaLocation":1539},{"text":1655,"config":1656},"Public sector",{"href":1245,"dataGaName":1075,"dataGaLocation":1539},{"text":1247,"config":1658},{"href":1249,"dataGaName":1250,"dataGaLocation":1539},{"text":1252,"config":1660},{"href":1254,"dataGaName":1255,"dataGaLocation":1539},{"text":1257,"config":1662},{"href":1259,"dataGaName":1260,"dataGaLocation":1539},{"text":1262,"config":1664},{"href":1264,"dataGaName":1265,"dataGaLocation":1539},{"text":1220,"config":1666},{"href":1222,"dataGaName":1223,"dataGaLocation":1539},{"text":1668,"config":1669},"Small business",{"href":1227,"dataGaName":1228,"dataGaLocation":1539},{"text":1230,"config":1671},{"href":1232,"dataGaName":1233,"dataGaLocation":1539},{"text":1607,"config":1673},{"href":1674,"dataGaName":1610,"dataGaLocation":1539},"/solutions/gitops/",{"text":1676,"config":1677},"Software composition analysis",{"href":1157,"dataGaName":1678,"dataGaLocation":1539},"software composition analysis",{"text":1680,"config":1681},"Value stream management",{"href":1175,"dataGaName":1682,"dataGaLocation":1539},"value stream management",{"text":1684,"config":1685},"All solutions",{"href":1196,"dataGaName":1686,"dataGaLocation":1539},"all solutions",{"title":1281,"links":1688},[1689,1694,1699,1701,1703,1705,1707,1709,1711,1713,1715,1717,1719,1721,1724],{"text":1690,"config":1691},"Install",{"href":1692,"dataGaName":1693,"dataGaLocation":1539},"/install/","install",{"text":1695,"config":1696},"Quick start guides",{"href":1697,"dataGaName":1698,"dataGaLocation":1539},"/get-started/","quick setup checklists",{"text":1294,"config":1700},{"href":1296,"dataGaName":1297,"dataGaLocation":1539},{"text":1299,"config":1702},{"href":1301,"dataGaName":1302,"dataGaLocation":1539},{"text":1304,"config":1704},{"href":1306,"dataGaName":1307,"dataGaLocation":1539},{"text":1309,"config":1706},{"href":1311,"dataGaName":1312,"dataGaLocation":1539},{"text":1314,"config":1708},{"href":1316,"dataGaName":1317,"dataGaLocation":1539},{"text":1327,"config":1710},{"href":1329,"dataGaName":1330,"dataGaLocation":1539},{"text":1332,"config":1712},{"href":1334,"dataGaName":1335,"dataGaLocation":1539},{"text":1337,"config":1714},{"href":1339,"dataGaName":1340,"dataGaLocation":1539},{"text":1342,"config":1716},{"href":1344,"dataGaName":1345,"dataGaLocation":1539},{"text":1347,"config":1718},{"href":1349,"dataGaName":1350,"dataGaLocation":1539},{"text":1409,"config":1720},{"href":1411,"dataGaName":1412,"dataGaLocation":1539},{"text":1722,"config":1723},"What's new",{"href":1358,"dataGaName":1359,"dataGaLocation":1539},{"text":1725,"config":1726},"All resources",{"href":1288,"dataGaName":1727,"dataGaLocation":1539},"all resources",{"title":1361,"links":1729},[1730,1732,1734,1736,1738,1740,1742,1744,1746,1750,1755],{"text":1369,"config":1731},{"href":1371,"dataGaName":1363,"dataGaLocation":1539},{"text":1374,"config":1733},{"href":1376,"dataGaName":349,"dataGaLocation":1539},{"text":1379,"config":1735},{"href":1381,"dataGaName":1382,"dataGaLocation":1539},{"text":1384,"config":1737},{"href":1386,"dataGaName":1387,"dataGaLocation":1539},{"text":1389,"config":1739},{"href":1391,"dataGaName":1392,"dataGaLocation":1539},{"text":1394,"config":1741},{"href":1396,"dataGaName":1397,"dataGaLocation":1539},{"text":1399,"config":1743},{"href":1401,"dataGaName":1402,"dataGaLocation":1539},{"text":1404,"config":1745},{"href":1406,"dataGaName":1407,"dataGaLocation":1539},{"text":1747,"config":1748},"Sustainability",{"href":1749,"dataGaName":1747,"dataGaLocation":1539},"/sustainability/",{"text":1751,"config":1752},"Diversity, inclusion and belonging (DIB)",{"href":1753,"dataGaName":1754,"dataGaLocation":1539},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1756,"config":1757},"Modern Slavery Transparency Statement",{"href":1758,"dataGaName":1759,"dataGaLocation":1539},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1761},[1762,1765,1768],{"text":1763,"config":1764},"Terms",{"href":1569,"dataGaName":1570,"dataGaLocation":1539},{"text":1766,"config":1767},"Cookies",{"dataGaName":1579,"dataGaLocation":1539,"id":1580,"isOneTrustButton":61},{"text":1769,"config":1770},"Privacy",{"href":1574,"dataGaName":1575,"dataGaLocation":1539},[1772],{"id":1773,"title":7,"body":1062,"config":1774,"content":1776,"description":1062,"extension":1780,"meta":1781,"navigation":61,"path":1782,"seo":1783,"stem":1784,"__hash__":1785},"blogAuthors/en-us/blog/authors/dan-rabinovitz.yml",{"template":1775},"BlogAuthor",{"name":7,"config":1777},{"headshot":1778,"ctfId":1779},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664796/Blog/Author%20Headshots/dan_rabinovitz_headshot.png","31AXb267jy94budCWQZQyr","yml",{},"/en-us/blog/authors/dan-rabinovitz",{},"en-us/blog/authors/dan-rabinovitz","ALumXPpoMtAOa0CioARmbXAhF7oUL7I2ZrvVtTiShb8",[1787,1795,1803],{"title":1788,"description":1789,"heroImage":1790,"category":1058,"date":1791,"authors":1792,"slug":1794,"externalUrl":1062},"GitLab Orbit: Find vulnerability blast radius without the manual hunt","Exploitation happens at machine speed now. Map every project, owner, and pipeline a critical CVE touches so remediation can keep up.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1780996524/sd1vpl8empy26wizarqj.png","2026-10-29",[1793],"Rebecca Carter","find-vulnerability-blast-radius-with-gitlab-orbit",{"title":1796,"description":1797,"heroImage":1798,"category":1058,"date":1799,"authors":1800,"slug":1802,"externalUrl":1062},"What happens when vulnerabilities are discovered faster than you can fix them?","Frontier AI is changing how quickly vulnerabilities can be discovered and exploited. The next challenge is bringing that same speed to remediation and prevention, inside the software factory.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1772195014/ooezwusxjl1f7ijfmbvj.png","2026-10-28",[1801],"Bill Staples","security-at-machine-speed",{"title":1804,"description":1805,"heroImage":1806,"category":1058,"date":1807,"authors":1808,"slug":1810,"externalUrl":1062},"Uncover the business logic vulnerabilities SAST scanners miss","Now in early access, Business Logic Security Analyzer reads your repository, infers what each endpoint should enforce, and flags the gaps.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1756122536/akivvcnafog9c4dhhzkp.png","2026-10-20",[1809],"Chris Widstrom","gitlab-business-logic-security-analyzer",{"header":1812,"text":1813,"button":1817,"disclaimer":1820},"Start your free\n\n30-day GitLab trial\n",[1814,1815,1816],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1088,"config":1818},{"href":1819,"dataGaName":1091,"dataGaLocation":1330},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1822,"blurb":1823,"button":1824,"secondaryButton":1829},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1825,"config":1826},"Get your free trial",{"href":1827,"dataGaName":1091,"dataGaLocation":1828},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1555,"config":1830},{"href":1423,"dataGaName":1096,"dataGaLocation":1828},1794911785246]