[{"data":1,"prerenderedAt":1255},["ShallowReactive",2],{"/blog/automating-a-twitter-bot-using-gitlab-cicd":3,"navigation-en-us":506,"banner-en-us":943,"footer-en-us":951,"blog-post-authors-en-us-Siddharth Mathur":1195,"blog-related-posts-en-us-automating-a-twitter-bot-using-gitlab-cicd":1210,"blog-share-wrapper-en-us":1235,"next-steps-en-us":1245},{"id":4,"title":5,"authors":6,"body":8,"category":484,"date":485,"description":486,"extension":487,"externalUrl":488,"faq":488,"featured":489,"heroImage":490,"hidePromo":489,"meta":491,"navigation":134,"path":492,"seo":493,"slug":497,"stem":498,"tags":499,"template":504,"updatedDate":488,"__hash__":505},"blogPosts/en-us/blog/automating-a-twitter-bot-using-gitlab-cicd.md","How to automate a Twitter bot using GitLab CI/CD",[7],"Siddharth Mathur",{"type":9,"value":10,"toc":478},"minimark",[11,15,36,54,63,66,76,79,84,91,99,244,258,265,273,276,280,283,296,299,302,321,326,337,399,402,406,409,426,432,435,439,445,451,454,474],[12,13,14],"p",{},"GitLab's CI/CD pipelines are great for automating many things, like deployments to Google Kubernetes Engine and security scans. But did you know that you could use GitLab CI/CD pipelines to run a set-and-forget Twitter bot?",[12,16,17,18,24,25,24,30,35],{},"Many organizations today are leveraging Twitter's API to ",[19,20,23],"a",{"href":21,"rel":22},"https://developer.twitter.com/en/blog/success-stories/target",[],"understand customer sentiment",", ",[19,26,29],{"href":27,"rel":28},"https://developer.twitter.com/en/blog/success-stories/penn",[],"track public health data",[19,31,34],{"href":32,"rel":33},"https://developer.twitter.com/en/blog/success-stories/likefolio",[],"perform financial analysis",", and more. While these bots may be running on self-managed infrastrucuture or external services, you can simplify and consolidate your tooling by leveraging GitLab instead, making your bot easier to manage.",[12,37,38,39,43,44,48,49,53],{},"With GitLab's ",[19,40,42],{"href":41},"/pricing/","Free tier",", you can leverage 400 minutes of CI/CD run time per month to automatically analyze and post tweets. With GitLab ",[19,45,47],{"href":46},"/pricing/premium/","Premium"," and ",[19,50,52],{"href":51},"/pricing/ultimate/","Ultimate",", you'll get even more pipeline minutes to tweet more, run longer natural language processing analyses, or for other projects.",[12,55,56,57,62],{},"Setting up a Twitter bot using GitLab is pretty simple. At the end of this blog, you'll have a project that looks like ",[19,58,61],{"href":59,"rel":60},"https://gitlab.com/smathur/twitter-bot",[],"this",", and a Twitter account that automatically posts a simple tweet.",[12,64,65],{},"To get started, you'll need these prerequisites:",[67,68,69,73],"ul",{},[70,71,72],"li",{},"GitLab account (self-hosted with GitLab Runner(s) set up or on GitLab.com)",[70,74,75],{},"Twitter API credentials",[12,77,78],{},"Once you've generated your Twitter API credentials, we can start building out our bot in GitLab. In this blog, we'll leverage GitLab's Web IDE based on Visual Studio Code, but feel free to use a code editor of your choice.",[80,81,83],"h2",{"id":82},"step-1-write-a-python-script-to-post-tweets","Step 1: Write a Python script to post tweets",[12,85,86],{},[87,88],"img",{"alt":89,"src":90},"Navigate to the Web IDE","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782397765/blog/Content%20Images/2023-03-10-automating-a-twitter-bot-using-gitlab-cicd/web-ide.png",[12,92,93,94,98],{},"Create a new blank project in GitLab, and click the \"Web IDE\" button to start writing some code. In the Web IDE, create a new file called ",[95,96,97],"code",{},"run_bot.py",", and paste the following code (this is where you interact with the Twitter API):",[100,101,106],"pre",{"className":102,"code":103,"language":104,"meta":105,"style":105},"language-python shiki shiki-themes github-light","import tweepy\nimport config\n\ndef set_up():\n    auth = tweepy.OAuthHandler(config.consumer_key, config.consumer_secret_key)\n    auth.set_access_token(config.access_token, config.access_token_secret)\n    api = tweepy.API(auth)\n    return api\n\ndef run(tweet):\n    api = set_up()\n    api.update_status(tweet)\n\nrun('It\\'s Tanuki time')\n","python","",[95,107,108,121,129,136,149,161,167,178,187,192,203,213,219,224],{"__ignoreMap":105},[109,110,113,117],"span",{"class":111,"line":112},"line",1,[109,114,116],{"class":115},"sD7c4","import",[109,118,120],{"class":119},"sgsFI"," tweepy\n",[109,122,124,126],{"class":111,"line":123},2,[109,125,116],{"class":115},[109,127,128],{"class":119}," config\n",[109,130,132],{"class":111,"line":131},3,[109,133,135],{"emptyLinePlaceholder":134},true,"\n",[109,137,139,142,146],{"class":111,"line":138},4,[109,140,141],{"class":115},"def",[109,143,145],{"class":144},"s7eDp"," set_up",[109,147,148],{"class":119},"():\n",[109,150,152,155,158],{"class":111,"line":151},5,[109,153,154],{"class":119},"    auth ",[109,156,157],{"class":115},"=",[109,159,160],{"class":119}," tweepy.OAuthHandler(config.consumer_key, config.consumer_secret_key)\n",[109,162,164],{"class":111,"line":163},6,[109,165,166],{"class":119},"    auth.set_access_token(config.access_token, config.access_token_secret)\n",[109,168,170,173,175],{"class":111,"line":169},7,[109,171,172],{"class":119},"    api ",[109,174,157],{"class":115},[109,176,177],{"class":119}," tweepy.API(auth)\n",[109,179,181,184],{"class":111,"line":180},8,[109,182,183],{"class":115},"    return",[109,185,186],{"class":119}," api\n",[109,188,190],{"class":111,"line":189},9,[109,191,135],{"emptyLinePlaceholder":134},[109,193,195,197,200],{"class":111,"line":194},10,[109,196,141],{"class":115},[109,198,199],{"class":144}," run",[109,201,202],{"class":119},"(tweet):\n",[109,204,206,208,210],{"class":111,"line":205},11,[109,207,172],{"class":119},[109,209,157],{"class":115},[109,211,212],{"class":119}," set_up()\n",[109,214,216],{"class":111,"line":215},12,[109,217,218],{"class":119},"    api.update_status(tweet)\n",[109,220,222],{"class":111,"line":221},13,[109,223,135],{"emptyLinePlaceholder":134},[109,225,227,230,234,238,241],{"class":111,"line":226},14,[109,228,229],{"class":119},"run(",[109,231,233],{"class":232},"sYBdl","'It",[109,235,237],{"class":236},"sYu0t","\\'",[109,239,240],{"class":232},"s Tanuki time'",[109,242,243],{"class":119},")\n",[12,245,246,250,251,254,255,257],{},[247,248,249],"strong",{},"Note:"," If you're familiar with Python, you'll notice that we're importing a file called ",[95,252,253],{},"config"," with some variables that we're using. This ",[95,256,253],{}," file doesn't exist yet, but we'll create it from within a GitLab pipeline, leveraging CI/CD variables to securely store and use our Twitter API credentials.",[12,259,260,261,264],{},"Create another file called ",[95,262,263],{},"requirements.txt",", and paste the following line:",[100,266,271],{"className":267,"code":269,"language":270,"meta":105},[268],"language-text","tweepy\n","text",[95,272,269],{"__ignoreMap":105},[12,274,275],{},"Changes to files in the Web IDE will be automatically saved, so switch to the Git tab and commit your changes.",[80,277,279],{"id":278},"step-2-create-a-cicd-pipeline-to-run-your-python-script","Step 2: Create a CI/CD pipeline to run your Python script",[12,281,282],{},"Next, we'll create a CI/CD pipeline script to run our Twitter bot and post a tweet every time the pipeline is run. To do this, you can:",[284,285,286,293],"ol",{},[70,287,288,289,292],{},"Create a new file using the Web IDE called ",[95,290,291],{},".gitlab-ci.yml",", or",[70,294,295],{},"Head to your GitLab project, and from the sidebar, click CI/CD > Editor.",[12,297,298],{},"If you see some default text in the pipeline configuration, delete everything to start with a clean slate.",[12,300,301],{},"In the pipeline YAML file, we'll first specify the Docker image we want to run the bot on:",[100,303,307],{"className":304,"code":305,"language":306,"meta":105,"style":105},"language-yaml shiki shiki-themes github-light","image: python:latest\n","yaml",[95,308,309],{"__ignoreMap":105},[109,310,311,315,318],{"class":111,"line":112},[109,312,314],{"class":313},"shJU0","image",[109,316,317],{"class":119},": ",[109,319,320],{"class":232},"python:latest\n",[12,322,323,325],{},[247,324,249],{}," Normally in a pipeline, we would define stages first and then write jobs that are each assigned to a specific stage. Since we're only running one job in this pipeline, we don't need to specify stages at the top of our pipeline configuration file.",[12,327,328,329,332,333,336],{},"Next, we'll add a job called ",[95,330,331],{},"run"," that runs the Python script we created in the previous step. Inside this job, we'll add a ",[95,334,335],{},"script"," section to run some commands that will execute our Python script.",[100,338,340],{"className":304,"code":339,"language":306,"meta":105,"style":105},"run:\n  script:\n    - echo \"consumer_key = '$CONSUMER_KEY'\" >> config.py\n    - echo \"consumer_secret_key = '$CONSUMER_SECRET'\" >> config.py\n    - echo \"access_token = '$ACCESS_TOKEN'\" >> config.py\n    - echo \"access_token_secret = '$ACCESS_SECRET'\" >> config.py\n    - pip install -r requirements.txt\n    - python3 run_bot.py\n",[95,341,342,349,356,364,371,378,385,392],{"__ignoreMap":105},[109,343,344,346],{"class":111,"line":112},[109,345,331],{"class":313},[109,347,348],{"class":119},":\n",[109,350,351,354],{"class":111,"line":123},[109,352,353],{"class":313},"  script",[109,355,348],{"class":119},[109,357,358,361],{"class":111,"line":131},[109,359,360],{"class":119},"    - ",[109,362,363],{"class":232},"echo \"consumer_key = '$CONSUMER_KEY'\" >> config.py\n",[109,365,366,368],{"class":111,"line":138},[109,367,360],{"class":119},[109,369,370],{"class":232},"echo \"consumer_secret_key = '$CONSUMER_SECRET'\" >> config.py\n",[109,372,373,375],{"class":111,"line":151},[109,374,360],{"class":119},[109,376,377],{"class":232},"echo \"access_token = '$ACCESS_TOKEN'\" >> config.py\n",[109,379,380,382],{"class":111,"line":163},[109,381,360],{"class":119},[109,383,384],{"class":232},"echo \"access_token_secret = '$ACCESS_SECRET'\" >> config.py\n",[109,386,387,389],{"class":111,"line":169},[109,388,360],{"class":119},[109,390,391],{"class":232},"pip install -r requirements.txt\n",[109,393,394,396],{"class":111,"line":180},[109,395,360],{"class":119},[109,397,398],{"class":232},"python3 run_bot.py\n",[12,400,401],{},"Commit your changes. The pipeline will automatically run, since you just made a change to the project files, but it will fail. This is because we are calling some CI/CD variables in the pipeline, which we haven't set yet. Let's go ahead and do that!",[80,403,405],{"id":404},"step-3-set-cicd-variables-to-store-api-tokens","Step 3: Set CI/CD variables to store API tokens",[12,407,408],{},"Head to your GitLab project and from the sidebar, go to Settings > CI/CD.",[12,410,411,412,24,415,24,418,421,422,425],{},"Expand the \"Variables\" section and add the ",[95,413,414],{},"ACCESS_SECRET",[95,416,417],{},"ACCESS_TOKEN",[95,419,420],{},"CONSUMER_KEY",", and ",[95,423,424],{},"CONSUMER_SECRET"," variables as shown below (these are your Twitter API credentials):",[12,427,428],{},[87,429],{"alt":430,"src":431},"CI/CD variables","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782397764/blog/Content%20Images/2023-03-10-automating-a-twitter-bot-using-gitlab-cicd/ci-cd-variables.png",[12,433,434],{},"Note that the secrets are masked to prevent them from showing up in job logs (check the \"Mask variable\" box when creating/editing the variable).",[80,436,438],{"id":437},"step-4-test-and-schedule-your-twitter-bot","Step 4: Test and schedule your Twitter bot",[12,440,441,442,444],{},"Now that we've got everything set up, all we need to do is run the bot. Go to CI/CD > Pipelines, and click \"Run pipeline\". Click \"Run pipeline\" again, and wait for the ",[95,443,331],{}," job to finish. If you've set up your Twitter credentials correctly, you should see that the pipeline successfully ran, and a tweet was posted on your bot account!",[12,446,447],{},[87,448],{"alt":449,"src":450},"Schedule a pipeline","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782397765/blog/Content%20Images/2023-03-10-automating-a-twitter-bot-using-gitlab-cicd/schedule-pipeline.png",[12,452,453],{},"Once you've verified that your pipeline runs successfully, schedule your pipeline to automatically run at a regular interval. Go to CI/CD > Schedules, and click \"New schedule\". Feel free to use one of the default provided intervals, or use cron to set a custom schedule. Specify a timezone, and ensure that the \"Active\" checkbox is checked. Finally, click \"Save pipeline schedule\". You'll see that your pipeline has been scheduled to run, and when it will run next.",[12,455,456,457,24,462,467,468,473],{},"And that's it! You now have a fully-functional Twitter bot running on GitLab, using CI/CD pipelines to automatically post tweets. While this demo Twitter bot simply posts a specified text message, you can add your own logic to ",[19,458,461],{"href":459,"rel":460},"https://linguatools.org/language-apis/sentence-generating-api/",[],"generate sentences using AI",[19,463,466],{"href":464,"rel":465},"https://www.analyticsvidhya.com/blog/2021/06/twitter-sentiment-analysis-a-nlp-use-case-for-beginners/",[],"perform sentiment analysis on other users' tweets",", and more. Running a Twitter bot is just one of the many ways you can leverage pipelines in GitLab, and you can also check out some other ",[19,469,472],{"href":470,"rel":471},"https://docs.gitlab.com/ci/examples/",[],"interesting use cases",".",[475,476,477],"style",{},"html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}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);}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}",{"title":105,"searchDepth":123,"depth":123,"links":479},[480,481,482,483],{"id":82,"depth":123,"text":83},{"id":278,"depth":123,"text":279},{"id":404,"depth":123,"text":405},{"id":437,"depth":123,"text":438},"engineering","2023-03-21","This tutorial shows how to use the DevSecOps platform to create a set-and-forget Twitter bot.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749661856/Blog/Hero%20Images/ci-cd-demo.jpg",{},"/en-us/blog/automating-a-twitter-bot-using-gitlab-cicd",{"title":5,"description":486,"ogTitle":5,"ogDescription":486,"noIndex":489,"ogImage":490,"ogUrl":494,"ogSiteName":495,"ogType":496,"canonicalUrls":494},"https://about.gitlab.com/blog/automating-a-twitter-bot-using-gitlab-cicd","https://about.gitlab.com","article","automating-a-twitter-bot-using-gitlab-cicd","en-us/blog/automating-a-twitter-bot-using-gitlab-cicd",[500,501,502,503],"DevSecOps","CI","CD","tutorial","BlogPost","hnKjqOFbMVU_tNUKg0AEg6t7g9qWbLsa-xzs0JqVQSw",{"logo":507,"freeTrial":512,"sales":517,"login":522,"items":527,"search":862,"minimal":894,"duo":913,"switchNav":922,"pricingDeployment":933},{"config":508},{"href":509,"dataGaName":510,"dataGaLocation":511},"/","gitlab logo","header",{"text":513,"config":514},"Get free trial",{"href":515,"dataGaName":516,"dataGaLocation":511},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":518,"config":519},"Request a demo",{"href":520,"dataGaName":521,"dataGaLocation":511},"/request-a-demo/","sales",{"text":523,"config":524},"Sign in",{"href":525,"dataGaName":526,"dataGaLocation":511},"https://gitlab.com/users/sign_in/","sign in",[528,614,702,706,786,840],{"text":529,"left":134,"config":530,"menu":532},"Platform",{"dataNavLevelOne":531},"platform",{"type":533,"link":534,"columns":538,"feature":603},"lists",{"text":535,"config":536},"Explore the Platform",{"href":537,"dataGaName":531,"dataGaLocation":511},"/platform/",[539,562,585],{"title":540,"items":541},"DevOps",[542,547,552,557],{"text":543,"config":544},"CI/CD",{"href":545,"dataGaLocation":511,"dataGaName":546},"/solutions/continuous-integration/","ci/cd",{"text":548,"config":549},"Source Code Management",{"href":550,"dataGaLocation":511,"dataGaName":551},"/solutions/source-code-management/","source code management",{"text":553,"config":554},"Agile Delivery",{"href":555,"dataGaLocation":511,"dataGaName":556},"/solutions/agile-delivery/","agile delivery",{"text":558,"config":559},"Artifact Management",{"href":560,"dataGaLocation":511,"dataGaName":561},"/artifact-central/","artifact management",{"title":563,"items":564},"Security & Governance",[565,570,575,580],{"text":566,"config":567},"Application Security Testing",{"href":568,"dataGaLocation":511,"dataGaName":569},"/solutions/application-security-testing/","application security testing",{"text":571,"config":572},"Governance & Compliance",{"href":573,"dataGaLocation":511,"dataGaName":574},"/solutions/software-compliance/","governance and compliance",{"text":576,"config":577},"Secrets Management",{"href":578,"dataGaLocation":511,"dataGaName":579},"/gitlab-secrets-manager/","secrets management",{"text":581,"config":582},"Supply Chain Security",{"href":583,"dataGaLocation":511,"dataGaName":584},"/solutions/supply-chain/","supply chain security",{"title":586,"items":587},"Agentic AI & Context",[588,593,598],{"text":589,"config":590},"Duo Agent Platform",{"href":591,"dataGaLocation":511,"dataGaName":592},"/gitlab-duo-agent-platform/","duo agent platform",{"text":594,"config":595},"Orbit Context Graph",{"href":596,"dataGaLocation":511,"dataGaName":597},"/gitlab-orbit/","orbit",{"text":599,"config":600},"Visibility & Measurement",{"href":601,"dataGaLocation":511,"dataGaName":602},"/solutions/visibility-measurement/","visibility and measurement",{"config":604,"title":607,"text":608,"link":609},{"background":605,"textColor":606},"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":610,"config":611},"Read the announcement",{"href":612,"dataGaName":613,"dataGaLocation":511},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":615,"left":134,"config":616,"menu":618},"Solutions",{"dataNavLevelOne":617},"solutions",{"type":533,"link":619,"columns":623,"feature":693},{"text":620,"config":621},"View all Solutions",{"href":622,"dataGaName":617,"dataGaLocation":511},"/solutions/",[624,642,660],{"title":625,"items":626},"Outcomes",[627,632,637],{"text":628,"config":629},"DevOps Modernization",{"href":630,"dataGaLocation":511,"dataGaName":631},"/assessments/devops-modernization-assessment/","devops modernization",{"text":633,"config":634},"Security Modernization",{"href":635,"dataGaLocation":511,"dataGaName":636},"/assessments/security-modernization-assessment/","security modernization",{"text":638,"config":639},"AI Modernization",{"href":640,"dataGaLocation":511,"dataGaName":641},"/assessments/ai-modernization-assessment/","ai modernization",{"title":643,"items":644},"By size",[645,650,655],{"text":646,"config":647},"Enterprise",{"href":648,"dataGaLocation":511,"dataGaName":649},"/enterprise/","enterprise",{"text":651,"config":652},"Small Business",{"href":653,"dataGaLocation":511,"dataGaName":654},"/small-business/","small business",{"text":656,"config":657},"Startups",{"href":658,"dataGaLocation":511,"dataGaName":659},"/solutions/startups/","startups",{"title":661,"items":662},"Industries",[663,668,673,678,683,688],{"text":664,"config":665},"Financial Services",{"href":666,"dataGaLocation":511,"dataGaName":667},"/solutions/finance/","financial services",{"text":669,"config":670},"Public Sector",{"href":671,"dataGaLocation":511,"dataGaName":672},"/solutions/public-sector/","public sector",{"text":674,"config":675},"Telecommunications",{"href":676,"dataGaLocation":511,"dataGaName":677},"/solutions/telecommunications/","telecommunications",{"text":679,"config":680},"Automotive",{"href":681,"dataGaLocation":511,"dataGaName":682},"/solutions/automotive/","automotive",{"text":684,"config":685},"Education",{"href":686,"dataGaLocation":511,"dataGaName":687},"/solutions/education/","education",{"text":689,"config":690},"Aerospace",{"href":691,"dataGaLocation":511,"dataGaName":692},"/solutions/aerospace/","aerospace",{"config":694,"title":695,"text":696,"link":697},{"background":605,"textColor":606},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":698,"config":699},"Explore the standard",{"href":700,"dataGaName":701,"dataGaLocation":511},"/gitlab-security-standard/","gitlab security standard",{"text":703,"config":704},"Pricing",{"href":41,"dataGaName":705,"dataGaLocation":511,"dataNavLevelOne":705},"pricing",{"text":707,"config":708,"menu":710},"Resources",{"dataNavLevelOne":709},"resources",{"type":533,"link":711,"columns":715,"feature":777},{"text":712,"config":713},"View all resources",{"href":714,"dataGaName":709,"dataGaLocation":511},"/resources/",[716,749],{"title":717,"items":718},"Discover",[719,724,729,734,739,744],{"text":720,"config":721},"Docs",{"href":722,"dataGaName":723,"dataGaLocation":511},"https://docs.gitlab.com/","docs",{"text":725,"config":726},"University",{"href":727,"dataGaName":728,"dataGaLocation":511},"https://university.gitlab.com/","university",{"text":730,"config":731},"Demo Series",{"href":732,"dataGaName":733,"dataGaLocation":511},"/gitlab-technical-demo-series/","demo series",{"text":735,"config":736},"Demo Hub",{"href":737,"dataGaName":738,"dataGaLocation":511},"/demo-hub/","demo hub",{"text":740,"config":741},"Services",{"href":742,"dataGaName":743,"dataGaLocation":511},"/services/","services",{"text":745,"config":746},"Well Architected",{"href":747,"dataGaName":748,"dataGaLocation":511},"/resources/well-architected/","well architected",{"title":750,"items":751},"Connect",[752,757,762,767,772],{"text":753,"config":754},"Blog",{"href":755,"dataGaName":756,"dataGaLocation":511},"/blog/","blog",{"text":758,"config":759},"Community",{"href":760,"dataGaName":761,"dataGaLocation":511},"/community/","community",{"text":763,"config":764},"Customers",{"href":765,"dataGaName":766,"dataGaLocation":511},"/customers/","customers",{"text":768,"config":769},"Partners",{"href":770,"dataGaName":771,"dataGaLocation":511},"/partners/","partners",{"text":773,"config":774},"Events",{"href":775,"dataGaName":776,"dataGaLocation":511},"/events/","events",{"config":778,"title":779,"text":780,"link":781},{"background":605,"textColor":606},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":782,"config":783},"Read the latest",{"href":784,"dataGaName":785,"dataGaLocation":511},"/whats-new/","whats new",{"text":787,"config":788,"menu":790},"Company",{"dataNavLevelOne":789},"company",{"type":533,"columns":791},[792],{"items":793},[794,799,805,810,815,820,825,830,835],{"text":795,"config":796},"About",{"href":797,"dataGaName":798,"dataGaLocation":511},"/company/","about",{"text":800,"config":801,"footerGa":804},"Jobs",{"href":802,"dataGaName":803,"dataGaLocation":511},"/jobs/","jobs",{"dataGaName":803},{"text":806,"config":807},"Press",{"href":808,"dataGaName":809,"dataGaLocation":511},"/press/","press",{"text":811,"config":812},"Handbook",{"href":813,"dataGaName":814,"dataGaLocation":511},"https://handbook.gitlab.com/","handbook",{"text":816,"config":817},"Leadership",{"href":818,"dataGaName":819,"dataGaLocation":511},"/company/team/e-group/","leadership",{"text":821,"config":822},"Investor relations",{"href":823,"dataGaName":824,"dataGaLocation":511},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":826,"config":827},"Trust Center",{"href":828,"dataGaName":829,"dataGaLocation":511},"/security/","trust center",{"text":831,"config":832},"AI Transparency Center",{"href":833,"dataGaName":834,"dataGaLocation":511},"/ai-transparency-center/","ai transparency center",{"text":836,"config":837},"Newsletter",{"href":838,"dataGaName":839,"dataGaLocation":511},"/company/contact/#contact-forms","newsletter",{"text":841,"config":842,"menu":843},"Contact us",{"dataNavLevelOne":789},{"type":533,"columns":844},[845],{"items":846},[847,852,857],{"text":848,"config":849},"Talk to sales",{"href":850,"dataGaName":851,"dataGaLocation":511},"/sales/","talk to sales",{"text":853,"config":854},"Support portal",{"href":855,"dataGaName":856,"dataGaLocation":511},"https://support.gitlab.com/hc/en-us","support portal",{"text":858,"config":859},"Customer portal",{"href":860,"dataGaName":861,"dataGaLocation":511},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":863,"login":864,"suggestions":871},"Close",{"text":865,"link":866},"To search repositories and projects, login to",{"text":867,"config":868},"gitlab.com",{"href":525,"dataGaName":869,"dataGaLocation":870},"search login","search",{"text":872,"default":873},"Suggestions",[874,877,880,882,886,890],{"text":875,"config":876},"GitLab Duo Agent Platform",{"href":591,"dataGaName":875,"dataGaLocation":870},{"text":878,"config":879},"Code Suggestions (AI)",{"href":591,"dataGaName":878,"dataGaLocation":870},{"text":543,"config":881},{"href":545,"dataGaName":543,"dataGaLocation":870},{"text":883,"config":884},"GitLab on AWS",{"href":885,"dataGaName":883,"dataGaLocation":870},"/partners/technology-partners/aws/",{"text":887,"config":888},"GitLab on Google Cloud",{"href":889,"dataGaName":887,"dataGaLocation":870},"/partners/technology-partners/google-cloud-platform/",{"text":891,"config":892},"Why GitLab?",{"href":893,"dataGaName":891,"dataGaLocation":870},"/why-gitlab/",{"freeTrial":895,"mobileIcon":900,"desktopIcon":905,"secondaryButton":908},{"text":896,"config":897},"Start free trial",{"href":898,"dataGaName":516,"dataGaLocation":899},"https://gitlab.com/-/trials/new/","nav",{"altText":901,"config":902},"Gitlab Icon",{"src":903,"dataGaName":904,"dataGaLocation":899},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":901,"config":906},{"src":907,"dataGaName":904,"dataGaLocation":899},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":909,"config":910},"Get Started",{"href":911,"dataGaName":912,"dataGaLocation":899},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":914,"mobileIcon":918,"desktopIcon":920},{"text":915,"config":916},"Learn more about GitLab Duo",{"href":591,"dataGaName":917,"dataGaLocation":899},"gitlab duo",{"altText":901,"config":919},{"src":903,"dataGaName":904,"dataGaLocation":899},{"altText":901,"config":921},{"src":907,"dataGaName":904,"dataGaLocation":899},{"button":923,"mobileIcon":928,"desktopIcon":930},{"text":924,"config":925},"/switch",{"href":926,"dataGaName":927,"dataGaLocation":899},"#contact","switch",{"altText":901,"config":929},{"src":903,"dataGaName":904,"dataGaLocation":899},{"altText":901,"config":931},{"src":932,"dataGaName":904,"dataGaLocation":899},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":934,"mobileIcon":939,"desktopIcon":941},{"text":935,"config":936},"Back to pricing",{"href":41,"dataGaName":937,"dataGaLocation":899,"icon":938},"back to pricing","GoBack",{"altText":901,"config":940},{"src":903,"dataGaName":904,"dataGaLocation":899},{"altText":901,"config":942},{"src":907,"dataGaName":904,"dataGaLocation":899},{"title":944,"button":945,"config":949},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":610,"config":946},{"href":612,"dataGaName":947,"dataGaLocation":948},"orbit-ga-banner","global-banner",{"layout":950,"disabled":489},"release",{"data":952},{"text":953,"config":954,"items":959,"minimal":1184},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":955,"facebook":956,"youtube":957,"linkedin":958},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[960,1006,1064,1111,1152],{"title":703,"links":961,"subMenu":975},[962,967,971],{"text":963,"config":964},"View plans",{"href":41,"dataGaName":965,"dataGaLocation":966},"view plans","footer",{"text":968,"config":969},"Why Premium?",{"href":46,"dataGaName":970,"dataGaLocation":966},"why premium",{"text":972,"config":973},"Why Ultimate?",{"href":51,"dataGaName":974,"dataGaLocation":966},"why ultimate",[976],{"title":977,"links":978},"Contact Us",[979,982,984,986,991,996,1001],{"text":980,"config":981},"Contact sales",{"href":850,"dataGaName":521,"dataGaLocation":966},{"text":853,"config":983},{"href":855,"dataGaName":856,"dataGaLocation":966},{"text":858,"config":985},{"href":860,"dataGaName":861,"dataGaLocation":966},{"text":987,"config":988},"Status",{"href":989,"dataGaName":990,"dataGaLocation":966},"https://status.gitlab.com/","status",{"text":992,"config":993},"Terms of use",{"href":994,"dataGaName":995,"dataGaLocation":966},"/terms/","terms of use",{"text":997,"config":998},"Privacy statement",{"href":999,"dataGaName":1000,"dataGaLocation":966},"/privacy/","privacy statement",{"text":1002,"config":1003},"Cookie preferences",{"dataGaName":1004,"dataGaLocation":966,"id":1005,"isOneTrustButton":134},"cookie preferences","ot-sdk-btn",{"title":529,"links":1007,"subMenu":1023},[1008,1011,1013,1015,1017,1019],{"text":1009,"config":1010},"Explore the platform",{"href":537,"dataGaName":531,"dataGaLocation":966},{"text":589,"config":1012},{"href":591,"dataGaName":592,"dataGaLocation":966},{"text":543,"config":1014},{"href":545,"dataGaName":546,"dataGaLocation":966},{"text":594,"config":1016},{"href":596,"dataGaName":597,"dataGaLocation":966},{"text":576,"config":1018},{"href":578,"dataGaName":579,"dataGaLocation":966},{"text":1020,"config":1021},"Why GitLab",{"href":893,"dataGaName":1022,"dataGaLocation":966},"why gitlab",[1024],{"title":1025,"links":1026},"Topics",[1027,1031,1036,1040,1045,1049,1054,1059],{"text":543,"config":1028},{"href":1029,"dataGaName":1030,"dataGaLocation":966},"/topics/ci-cd/","cicd",{"text":1032,"config":1033},"GitOps",{"href":1034,"dataGaName":1035,"dataGaLocation":966},"/topics/gitops/","gitops",{"text":540,"config":1037},{"href":1038,"dataGaName":1039,"dataGaLocation":966},"/topics/devops/","devops",{"text":1041,"config":1042},"Version Control",{"href":1043,"dataGaName":1044,"dataGaLocation":966},"/topics/version-control/","version control",{"text":500,"config":1046},{"href":1047,"dataGaName":1048,"dataGaLocation":966},"/topics/devsecops/","devsecops",{"text":1050,"config":1051},"Cloud Native",{"href":1052,"dataGaName":1053,"dataGaLocation":966},"/topics/cloud-native/","cloud native",{"text":1055,"config":1056},"AI for Coding",{"href":1057,"dataGaName":1058,"dataGaLocation":966},"/topics/devops/ai-for-coding/","ai for coding",{"text":1060,"config":1061},"Agentic AI",{"href":1062,"dataGaName":1063,"dataGaLocation":966},"/topics/agentic-ai/","agentic ai",{"title":615,"links":1065},[1066,1069,1072,1075,1078,1081,1083,1085,1087,1089,1091,1094,1096,1099,1103,1107],{"text":1067,"config":1068},"DevOps modernization",{"href":630,"dataGaName":631,"dataGaLocation":966},{"text":1070,"config":1071},"Security modernization",{"href":635,"dataGaName":636,"dataGaLocation":966},{"text":1073,"config":1074},"AI modernization",{"href":640,"dataGaName":641,"dataGaLocation":966},{"text":1076,"config":1077},"Financial services",{"href":666,"dataGaName":667,"dataGaLocation":966},{"text":1079,"config":1080},"Public sector",{"href":671,"dataGaName":672,"dataGaLocation":966},{"text":674,"config":1082},{"href":676,"dataGaName":677,"dataGaLocation":966},{"text":679,"config":1084},{"href":681,"dataGaName":682,"dataGaLocation":966},{"text":684,"config":1086},{"href":686,"dataGaName":687,"dataGaLocation":966},{"text":689,"config":1088},{"href":691,"dataGaName":692,"dataGaLocation":966},{"text":646,"config":1090},{"href":648,"dataGaName":649,"dataGaLocation":966},{"text":1092,"config":1093},"Small business",{"href":653,"dataGaName":654,"dataGaLocation":966},{"text":656,"config":1095},{"href":658,"dataGaName":659,"dataGaLocation":966},{"text":1032,"config":1097},{"href":1098,"dataGaName":1035,"dataGaLocation":966},"/solutions/gitops/",{"text":1100,"config":1101},"Software composition analysis",{"href":583,"dataGaName":1102,"dataGaLocation":966},"software composition analysis",{"text":1104,"config":1105},"Value stream management",{"href":601,"dataGaName":1106,"dataGaLocation":966},"value stream management",{"text":1108,"config":1109},"All solutions",{"href":622,"dataGaName":1110,"dataGaLocation":966},"all solutions",{"title":707,"links":1112},[1113,1118,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1148],{"text":1114,"config":1115},"Install",{"href":1116,"dataGaName":1117,"dataGaLocation":966},"/install/","install",{"text":1119,"config":1120},"Quick start guides",{"href":1121,"dataGaName":1122,"dataGaLocation":966},"/get-started/","quick setup checklists",{"text":720,"config":1124},{"href":722,"dataGaName":723,"dataGaLocation":966},{"text":725,"config":1126},{"href":727,"dataGaName":728,"dataGaLocation":966},{"text":730,"config":1128},{"href":732,"dataGaName":733,"dataGaLocation":966},{"text":735,"config":1130},{"href":737,"dataGaName":738,"dataGaLocation":966},{"text":740,"config":1132},{"href":742,"dataGaName":743,"dataGaLocation":966},{"text":753,"config":1134},{"href":755,"dataGaName":756,"dataGaLocation":966},{"text":758,"config":1136},{"href":760,"dataGaName":761,"dataGaLocation":966},{"text":763,"config":1138},{"href":765,"dataGaName":766,"dataGaLocation":966},{"text":768,"config":1140},{"href":770,"dataGaName":771,"dataGaLocation":966},{"text":773,"config":1142},{"href":775,"dataGaName":776,"dataGaLocation":966},{"text":836,"config":1144},{"href":838,"dataGaName":839,"dataGaLocation":966},{"text":1146,"config":1147},"What's new",{"href":784,"dataGaName":785,"dataGaLocation":966},{"text":1149,"config":1150},"All resources",{"href":714,"dataGaName":1151,"dataGaLocation":966},"all resources",{"title":787,"links":1153},[1154,1156,1158,1160,1162,1164,1166,1168,1170,1174,1179],{"text":795,"config":1155},{"href":797,"dataGaName":789,"dataGaLocation":966},{"text":800,"config":1157},{"href":802,"dataGaName":803,"dataGaLocation":966},{"text":806,"config":1159},{"href":808,"dataGaName":809,"dataGaLocation":966},{"text":811,"config":1161},{"href":813,"dataGaName":814,"dataGaLocation":966},{"text":816,"config":1163},{"href":818,"dataGaName":819,"dataGaLocation":966},{"text":821,"config":1165},{"href":823,"dataGaName":824,"dataGaLocation":966},{"text":826,"config":1167},{"href":828,"dataGaName":829,"dataGaLocation":966},{"text":831,"config":1169},{"href":833,"dataGaName":834,"dataGaLocation":966},{"text":1171,"config":1172},"Sustainability",{"href":1173,"dataGaName":1171,"dataGaLocation":966},"/sustainability/",{"text":1175,"config":1176},"Diversity, inclusion and belonging (DIB)",{"href":1177,"dataGaName":1178,"dataGaLocation":966},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1180,"config":1181},"Modern Slavery Transparency Statement",{"href":1182,"dataGaName":1183,"dataGaLocation":966},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1185},[1186,1189,1192],{"text":1187,"config":1188},"Terms",{"href":994,"dataGaName":995,"dataGaLocation":966},{"text":1190,"config":1191},"Cookies",{"dataGaName":1004,"dataGaLocation":966,"id":1005,"isOneTrustButton":134},{"text":1193,"config":1194},"Privacy",{"href":999,"dataGaName":1000,"dataGaLocation":966},[1196],{"id":1197,"title":7,"body":488,"config":1198,"content":1200,"description":488,"extension":1204,"meta":1205,"navigation":134,"path":1206,"seo":1207,"stem":1208,"__hash__":1209},"blogAuthors/en-us/blog/authors/siddharth-mathur.yml",{"template":1199},"BlogAuthor",{"name":7,"config":1201},{"headshot":1202,"ctfId":1203},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749682662/Blog/Author%20Headshots/smathur-headshot.png","smathur","yml",{},"/en-us/blog/authors/siddharth-mathur",{},"en-us/blog/authors/siddharth-mathur","OFzVMXJCGSeAlPAF_jOQBFrF09NTszNOW9DuGW7aDPY",[1211,1219,1227],{"title":1212,"description":1213,"heroImage":1214,"category":484,"date":1215,"authors":1216,"slug":1218,"externalUrl":488},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1217],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1220,"description":1221,"heroImage":1222,"category":484,"date":1223,"authors":1224,"slug":1226,"externalUrl":488},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1225],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1228,"description":1229,"heroImage":1230,"category":484,"date":1231,"authors":1232,"slug":1234,"externalUrl":488},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1233],"Isa Huerga","co-create-h1-2026",{"header":1236,"text":1237,"button":1241,"disclaimer":1244},"Start your free\n\n30-day GitLab trial\n",[1238,1239,1240],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":513,"config":1242},{"href":1243,"dataGaName":516,"dataGaLocation":756},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1246,"blurb":1247,"button":1248,"secondaryButton":1253},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1249,"config":1250},"Get your free trial",{"href":1251,"dataGaName":516,"dataGaLocation":1252},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":980,"config":1254},{"href":850,"dataGaName":521,"dataGaLocation":1252},1794911787422]