[{"data":1,"prerenderedAt":1290},["ShallowReactive",2],{"/blog/automating-a-twitter-bot-using-gitlab-cicd":3,"navigation-en-us":506,"banner-en-us":933,"footer-en-us":943,"blog-post-authors-en-us-Siddharth Mathur":1185,"blog-related-posts-en-us-automating-a-twitter-bot-using-gitlab-cicd":1200,"blog-promotions-en-us":1226,"next-steps-en-us":1280},{"id":4,"title":5,"authors":6,"body":8,"category":484,"date":485,"description":486,"extension":487,"externalUrl":488,"faq":488,"featured":489,"heroImage":490,"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","ZSAuigU0woNCnG1j4IU-BJkSZPrgXNgPchPBdJbe5Mo",{"logo":507,"freeTrial":512,"sales":517,"login":522,"items":527,"search":853,"minimal":884,"duo":903,"switchNav":912,"pricingDeployment":923},{"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},"/sales/?contact-topic=request-demo","sales",{"text":523,"config":524},"Sign in",{"href":525,"dataGaName":526,"dataGaLocation":511},"https://gitlab.com/users/sign_in/","sign in",[528,557,657,661,775,831],{"text":529,"config":530,"menu":532},"Platform",{"dataNavLevelOne":531},"platform",{"type":533,"columns":534},"cards",[535,541,549],{"title":529,"description":536,"link":537},"The intelligent orchestration platform for DevSecOps",{"text":538,"config":539},"Explore our Platform",{"href":540,"dataGaName":531,"dataGaLocation":511},"/platform/",{"title":542,"description":543,"link":544},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":545,"config":546},"Meet GitLab Duo",{"href":547,"dataGaName":548,"dataGaLocation":511},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":550,"description":551,"link":552},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":553,"config":554},"Learn more",{"href":555,"dataGaName":556,"dataGaLocation":511},"/why-gitlab/","why gitlab",{"text":558,"left":134,"config":559,"menu":561},"Product",{"dataNavLevelOne":560},"solutions",{"type":562,"link":563,"columns":567,"feature":636},"lists",{"text":564,"config":565},"View all Solutions",{"href":566,"dataGaName":560,"dataGaLocation":511},"/solutions/",[568,592,615],{"title":569,"description":570,"link":571,"items":576},"Automation","CI/CD and automation to accelerate deployment",{"config":572},{"icon":573,"href":574,"dataGaName":575,"dataGaLocation":511},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[577,581,584,588],{"text":578,"config":579},"CI/CD",{"href":580,"dataGaLocation":511,"dataGaName":578},"/solutions/continuous-integration/",{"text":542,"config":582},{"href":547,"dataGaLocation":511,"dataGaName":583},"gitlab duo agent platform - product menu",{"text":585,"config":586},"Source Code Management",{"href":587,"dataGaLocation":511,"dataGaName":585},"/solutions/source-code-management/",{"text":589,"config":590},"Automated Software Delivery",{"href":574,"dataGaLocation":511,"dataGaName":591},"Automated software delivery",{"title":593,"description":594,"link":595,"items":600},"Security","Deliver code faster without compromising security",{"config":596},{"href":597,"dataGaName":598,"dataGaLocation":511,"icon":599},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[601,605,610],{"text":602,"config":603},"Application Security Testing",{"href":597,"dataGaName":604,"dataGaLocation":511},"Application security testing",{"text":606,"config":607},"Software Supply Chain Security",{"href":608,"dataGaLocation":511,"dataGaName":609},"/solutions/supply-chain/","Software supply chain security",{"text":611,"config":612},"Software Compliance",{"href":613,"dataGaName":614,"dataGaLocation":511},"/solutions/software-compliance/","software compliance",{"title":616,"link":617,"items":622},"Measurement",{"config":618},{"icon":619,"href":620,"dataGaName":621,"dataGaLocation":511},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[623,627,631],{"text":624,"config":625},"Visibility & Measurement",{"href":620,"dataGaLocation":511,"dataGaName":626},"Visibility and Measurement",{"text":628,"config":629},"Value Stream Management",{"href":630,"dataGaLocation":511,"dataGaName":628},"/solutions/value-stream-management/",{"text":632,"config":633},"Analytics & Insights",{"href":634,"dataGaLocation":511,"dataGaName":635},"/solutions/analytics-and-insights/","Analytics and insights",{"title":637,"type":562,"items":638},"GitLab for",[639,645,651],{"text":640,"config":641},"Enterprise",{"icon":642,"href":643,"dataGaLocation":511,"dataGaName":644},"Building","/enterprise/","enterprise",{"text":646,"config":647},"Small Business",{"icon":648,"href":649,"dataGaLocation":511,"dataGaName":650},"Work","/small-business/","small business",{"text":652,"config":653},"Public Sector",{"icon":654,"href":655,"dataGaLocation":511,"dataGaName":656},"Organization","/solutions/public-sector/","public sector",{"text":658,"config":659},"Pricing",{"href":41,"dataGaName":660,"dataGaLocation":511,"dataNavLevelOne":660},"pricing",{"text":662,"config":663,"menu":665},"Resources",{"dataNavLevelOne":664},"resources",{"type":562,"link":666,"columns":670,"feature":764},{"text":667,"config":668},"View all resources",{"href":669,"dataGaName":664,"dataGaLocation":511},"/resources/",[671,704,731],{"title":672,"items":673},"Getting started",[674,679,684,689,694,699],{"text":675,"config":676},"Install",{"href":677,"dataGaName":678,"dataGaLocation":511},"/install/","install",{"text":680,"config":681},"Quick start guides",{"href":682,"dataGaName":683,"dataGaLocation":511},"/get-started/","quick setup checklists",{"text":685,"config":686},"Learn",{"href":687,"dataGaLocation":511,"dataGaName":688},"https://university.gitlab.com/","learn",{"text":690,"config":691},"Product documentation",{"href":692,"dataGaName":693,"dataGaLocation":511},"https://docs.gitlab.com/","product documentation",{"text":695,"config":696},"Best practice videos",{"href":697,"dataGaName":698,"dataGaLocation":511},"/getting-started-videos/","best practice videos",{"text":700,"config":701},"Integrations",{"href":702,"dataGaName":703,"dataGaLocation":511},"/integrations/","integrations",{"title":705,"items":706},"Discover",[707,712,717,722,726],{"text":708,"config":709},"Customer success stories",{"href":710,"dataGaName":711,"dataGaLocation":511},"/customers/","customer success stories",{"text":713,"config":714},"Blog",{"href":715,"dataGaName":716,"dataGaLocation":511},"/blog/","blog",{"text":718,"config":719},"Demo Hub",{"href":720,"dataGaName":721,"dataGaLocation":511},"/demo-hub/","demo hub",{"text":723,"config":724},"The Source",{"href":725,"dataGaName":716,"dataGaLocation":511},"/the-source/",{"text":727,"config":728},"Remote",{"href":729,"dataGaName":730,"dataGaLocation":511},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":732,"items":733},"Connect",[734,739,744,749,754,759],{"text":735,"config":736},"GitLab Services",{"href":737,"dataGaName":738,"dataGaLocation":511},"/services/","services",{"text":740,"config":741},"Contribute",{"href":742,"dataGaName":743,"dataGaLocation":511},"https://contributors.gitlab.com","contribute",{"text":745,"config":746},"Community",{"href":747,"dataGaName":748,"dataGaLocation":511},"/community/","community",{"text":750,"config":751},"Forum",{"href":752,"dataGaName":753,"dataGaLocation":511},"https://forum.gitlab.com/","forum",{"text":755,"config":756},"Events",{"href":757,"dataGaName":758,"dataGaLocation":511},"/events/","events",{"text":760,"config":761},"Partners",{"href":762,"dataGaName":763,"dataGaLocation":511},"/partners/","partners",{"config":765,"title":768,"text":769,"link":770},{"background":766,"textColor":767},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":771,"config":772},"Read the latest",{"href":773,"dataGaName":774,"dataGaLocation":511},"/whats-new/","whats new",{"text":776,"config":777,"menu":779},"Company",{"dataNavLevelOne":778},"company",{"type":562,"columns":780},[781],{"items":782},[783,788,794,796,801,806,811,816,821,826],{"text":784,"config":785},"About",{"href":786,"dataGaName":787,"dataGaLocation":511},"/company/","about",{"text":789,"config":790,"footerGa":793},"Jobs",{"href":791,"dataGaName":792,"dataGaLocation":511},"/jobs/","jobs",{"dataGaName":792},{"text":755,"config":795},{"href":757,"dataGaName":758,"dataGaLocation":511},{"text":797,"config":798},"Leadership",{"href":799,"dataGaName":800,"dataGaLocation":511},"/company/team/e-group/","leadership",{"text":802,"config":803},"Handbook",{"href":804,"dataGaName":805,"dataGaLocation":511},"https://handbook.gitlab.com/","handbook",{"text":807,"config":808},"Investor relations",{"href":809,"dataGaName":810,"dataGaLocation":511},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":812,"config":813},"Trust Center",{"href":814,"dataGaName":815,"dataGaLocation":511},"/security/","trust center",{"text":817,"config":818},"AI Transparency Center",{"href":819,"dataGaName":820,"dataGaLocation":511},"/ai-transparency-center/","ai transparency center",{"text":822,"config":823},"Newsletter",{"href":824,"dataGaName":825,"dataGaLocation":511},"/company/contact/#contact-forms","newsletter",{"text":827,"config":828},"Press",{"href":829,"dataGaName":830,"dataGaLocation":511},"/press/","press",{"text":832,"config":833,"menu":834},"Contact us",{"dataNavLevelOne":778},{"type":562,"columns":835},[836],{"items":837},[838,843,848],{"text":839,"config":840},"Talk to sales",{"href":841,"dataGaName":842,"dataGaLocation":511},"/sales/","talk to sales",{"text":844,"config":845},"Support portal",{"href":846,"dataGaName":847,"dataGaLocation":511},"https://support.gitlab.com/hc/en-us","support portal",{"text":849,"config":850},"Customer portal",{"href":851,"dataGaName":852,"dataGaLocation":511},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":854,"login":855,"suggestions":862},"Close",{"text":856,"link":857},"To search repositories and projects, login to",{"text":858,"config":859},"gitlab.com",{"href":525,"dataGaName":860,"dataGaLocation":861},"search login","search",{"text":863,"default":864},"Suggestions",[865,867,871,873,877,881],{"text":542,"config":866},{"href":547,"dataGaName":542,"dataGaLocation":861},{"text":868,"config":869},"Code Suggestions (AI)",{"href":870,"dataGaName":868,"dataGaLocation":861},"/solutions/code-suggestions/",{"text":578,"config":872},{"href":580,"dataGaName":578,"dataGaLocation":861},{"text":874,"config":875},"GitLab on AWS",{"href":876,"dataGaName":874,"dataGaLocation":861},"/partners/technology-partners/aws/",{"text":878,"config":879},"GitLab on Google Cloud",{"href":880,"dataGaName":878,"dataGaLocation":861},"/partners/technology-partners/google-cloud-platform/",{"text":882,"config":883},"Why GitLab?",{"href":555,"dataGaName":882,"dataGaLocation":861},{"freeTrial":885,"mobileIcon":890,"desktopIcon":895,"secondaryButton":898},{"text":886,"config":887},"Start free trial",{"href":888,"dataGaName":516,"dataGaLocation":889},"https://gitlab.com/-/trials/new/","nav",{"altText":891,"config":892},"Gitlab Icon",{"src":893,"dataGaName":894,"dataGaLocation":889},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":891,"config":896},{"src":897,"dataGaName":894,"dataGaLocation":889},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":899,"config":900},"Get Started",{"href":901,"dataGaName":902,"dataGaLocation":889},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":904,"mobileIcon":908,"desktopIcon":910},{"text":905,"config":906},"Learn more about GitLab Duo",{"href":547,"dataGaName":907,"dataGaLocation":889},"gitlab duo",{"altText":891,"config":909},{"src":893,"dataGaName":894,"dataGaLocation":889},{"altText":891,"config":911},{"src":897,"dataGaName":894,"dataGaLocation":889},{"button":913,"mobileIcon":918,"desktopIcon":920},{"text":914,"config":915},"/switch",{"href":916,"dataGaName":917,"dataGaLocation":889},"#contact","switch",{"altText":891,"config":919},{"src":893,"dataGaName":894,"dataGaLocation":889},{"altText":891,"config":921},{"src":922,"dataGaName":894,"dataGaLocation":889},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":924,"mobileIcon":929,"desktopIcon":931},{"text":925,"config":926},"Back to pricing",{"href":41,"dataGaName":927,"dataGaLocation":889,"icon":928},"back to pricing","GoBack",{"altText":891,"config":930},{"src":893,"dataGaName":894,"dataGaLocation":889},{"altText":891,"config":932},{"src":897,"dataGaName":894,"dataGaLocation":889},{"title":934,"titleMobile":935,"button":936,"config":941},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":553,"config":937},{"href":938,"dataGaName":939,"dataGaLocation":940},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":942,"disabled":489},"release",{"data":944},{"text":945,"source":946,"edit":952,"contribute":957,"config":962,"items":967,"minimal":1174},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":947,"config":948},"View page source",{"href":949,"dataGaName":950,"dataGaLocation":951},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":953,"config":954},"Edit this page",{"href":955,"dataGaName":956,"dataGaLocation":951},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":958,"config":959},"Please contribute",{"href":960,"dataGaName":961,"dataGaLocation":951},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":963,"facebook":964,"youtube":965,"linkedin":966},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[968,1013,1066,1110,1142],{"title":658,"links":969,"subMenu":982},[970,974,978],{"text":971,"config":972},"View plans",{"href":41,"dataGaName":973,"dataGaLocation":951},"view plans",{"text":975,"config":976},"Why Premium?",{"href":46,"dataGaName":977,"dataGaLocation":951},"why premium",{"text":979,"config":980},"Why Ultimate?",{"href":51,"dataGaName":981,"dataGaLocation":951},"why ultimate",[983],{"title":984,"links":985},"Contact Us",[986,989,991,993,998,1003,1008],{"text":987,"config":988},"Contact sales",{"href":841,"dataGaName":521,"dataGaLocation":951},{"text":844,"config":990},{"href":846,"dataGaName":847,"dataGaLocation":951},{"text":849,"config":992},{"href":851,"dataGaName":852,"dataGaLocation":951},{"text":994,"config":995},"Status",{"href":996,"dataGaName":997,"dataGaLocation":951},"https://status.gitlab.com/","status",{"text":999,"config":1000},"Terms of use",{"href":1001,"dataGaName":1002,"dataGaLocation":951},"/terms/","terms of use",{"text":1004,"config":1005},"Privacy statement",{"href":1006,"dataGaName":1007,"dataGaLocation":951},"/privacy/","privacy statement",{"text":1009,"config":1010},"Cookie preferences",{"dataGaName":1011,"dataGaLocation":951,"id":1012,"isOneTrustButton":134},"cookie preferences","ot-sdk-btn",{"title":558,"links":1014,"subMenu":1023},[1015,1019],{"text":1016,"config":1017},"DevSecOps platform",{"href":540,"dataGaName":1018,"dataGaLocation":951},"devsecops platform",{"text":1020,"config":1021},"AI-Assisted Development",{"href":547,"dataGaName":1022,"dataGaLocation":951},"ai-assisted development",[1024],{"title":1025,"links":1026},"Topics",[1027,1032,1037,1042,1047,1051,1056,1061],{"text":1028,"config":1029},"CICD",{"href":1030,"dataGaName":1031,"dataGaLocation":951},"/topics/ci-cd/","cicd",{"text":1033,"config":1034},"GitOps",{"href":1035,"dataGaName":1036,"dataGaLocation":951},"/topics/gitops/","gitops",{"text":1038,"config":1039},"DevOps",{"href":1040,"dataGaName":1041,"dataGaLocation":951},"/topics/devops/","devops",{"text":1043,"config":1044},"Version Control",{"href":1045,"dataGaName":1046,"dataGaLocation":951},"/topics/version-control/","version control",{"text":500,"config":1048},{"href":1049,"dataGaName":1050,"dataGaLocation":951},"/topics/devsecops/","devsecops",{"text":1052,"config":1053},"Cloud Native",{"href":1054,"dataGaName":1055,"dataGaLocation":951},"/topics/cloud-native/","cloud native",{"text":1057,"config":1058},"AI for Coding",{"href":1059,"dataGaName":1060,"dataGaLocation":951},"/topics/devops/ai-for-coding/","ai for coding",{"text":1062,"config":1063},"Agentic AI",{"href":1064,"dataGaName":1065,"dataGaLocation":951},"/topics/agentic-ai/","agentic ai",{"title":1067,"links":1068},"Solutions",[1069,1071,1073,1078,1082,1085,1089,1092,1094,1097,1100,1105],{"text":602,"config":1070},{"href":597,"dataGaName":602,"dataGaLocation":951},{"text":591,"config":1072},{"href":574,"dataGaName":575,"dataGaLocation":951},{"text":1074,"config":1075},"Agile development",{"href":1076,"dataGaName":1077,"dataGaLocation":951},"/solutions/agile-delivery/","agile delivery",{"text":1079,"config":1080},"SCM",{"href":587,"dataGaName":1081,"dataGaLocation":951},"source code management",{"text":1028,"config":1083},{"href":580,"dataGaName":1084,"dataGaLocation":951},"continuous integration & delivery",{"text":1086,"config":1087},"Value stream management",{"href":630,"dataGaName":1088,"dataGaLocation":951},"value stream management",{"text":1033,"config":1090},{"href":1091,"dataGaName":1036,"dataGaLocation":951},"/solutions/gitops/",{"text":640,"config":1093},{"href":643,"dataGaName":644,"dataGaLocation":951},{"text":1095,"config":1096},"Small business",{"href":649,"dataGaName":650,"dataGaLocation":951},{"text":1098,"config":1099},"Public sector",{"href":655,"dataGaName":656,"dataGaLocation":951},{"text":1101,"config":1102},"Education",{"href":1103,"dataGaName":1104,"dataGaLocation":951},"/solutions/education/","education",{"text":1106,"config":1107},"Financial services",{"href":1108,"dataGaName":1109,"dataGaLocation":951},"/solutions/finance/","financial services",{"title":662,"links":1111},[1112,1114,1116,1118,1121,1123,1126,1128,1130,1132,1134,1136,1138,1140],{"text":675,"config":1113},{"href":677,"dataGaName":678,"dataGaLocation":951},{"text":680,"config":1115},{"href":682,"dataGaName":683,"dataGaLocation":951},{"text":685,"config":1117},{"href":687,"dataGaName":688,"dataGaLocation":951},{"text":690,"config":1119},{"href":692,"dataGaName":1120,"dataGaLocation":951},"docs",{"text":713,"config":1122},{"href":715,"dataGaName":716,"dataGaLocation":951},{"text":1124,"config":1125},"What's new",{"href":773,"dataGaName":774,"dataGaLocation":951},{"text":708,"config":1127},{"href":710,"dataGaName":711,"dataGaLocation":951},{"text":727,"config":1129},{"href":729,"dataGaName":730,"dataGaLocation":951},{"text":735,"config":1131},{"href":737,"dataGaName":738,"dataGaLocation":951},{"text":740,"config":1133},{"href":742,"dataGaName":743,"dataGaLocation":951},{"text":745,"config":1135},{"href":747,"dataGaName":748,"dataGaLocation":951},{"text":750,"config":1137},{"href":752,"dataGaName":753,"dataGaLocation":951},{"text":755,"config":1139},{"href":757,"dataGaName":758,"dataGaLocation":951},{"text":760,"config":1141},{"href":762,"dataGaName":763,"dataGaLocation":951},{"title":776,"links":1143},[1144,1146,1148,1150,1152,1154,1158,1163,1165,1167,1169],{"text":784,"config":1145},{"href":786,"dataGaName":778,"dataGaLocation":951},{"text":789,"config":1147},{"href":791,"dataGaName":792,"dataGaLocation":951},{"text":797,"config":1149},{"href":799,"dataGaName":800,"dataGaLocation":951},{"text":802,"config":1151},{"href":804,"dataGaName":805,"dataGaLocation":951},{"text":807,"config":1153},{"href":809,"dataGaName":810,"dataGaLocation":951},{"text":1155,"config":1156},"Sustainability",{"href":1157,"dataGaName":1155,"dataGaLocation":951},"/sustainability/",{"text":1159,"config":1160},"Diversity, inclusion and belonging (DIB)",{"href":1161,"dataGaName":1162,"dataGaLocation":951},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":812,"config":1164},{"href":814,"dataGaName":815,"dataGaLocation":951},{"text":822,"config":1166},{"href":824,"dataGaName":825,"dataGaLocation":951},{"text":827,"config":1168},{"href":829,"dataGaName":830,"dataGaLocation":951},{"text":1170,"config":1171},"Modern Slavery Transparency Statement",{"href":1172,"dataGaName":1173,"dataGaLocation":951},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1175},[1176,1179,1182],{"text":1177,"config":1178},"Terms",{"href":1001,"dataGaName":1002,"dataGaLocation":951},{"text":1180,"config":1181},"Cookies",{"dataGaName":1011,"dataGaLocation":951,"id":1012,"isOneTrustButton":134},{"text":1183,"config":1184},"Privacy",{"href":1006,"dataGaName":1007,"dataGaLocation":951},[1186],{"id":1187,"title":7,"body":488,"config":1188,"content":1190,"description":488,"extension":1194,"meta":1195,"navigation":134,"path":1196,"seo":1197,"stem":1198,"__hash__":1199},"blogAuthors/en-us/blog/authors/siddharth-mathur.yml",{"template":1189},"BlogAuthor",{"name":7,"config":1191},{"headshot":1192,"ctfId":1193},"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",[1201,1210,1218],{"title":1202,"description":1203,"heroImage":1204,"category":484,"date":1205,"authors":1206,"slug":1209,"externalUrl":488},"Confidential AI for GitLab Self-Hosted","Give developers AI coding agents in GitLab Duo without source code leaving a hardware-encrypted boundary — no GPUs needed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1773866173/vte9qh8rriznvyclhkes.png","2026-08-06",[1207,1208],"Mathias Ewald","Martin Paloncy, Edgeless Systems","confidential-ai-for-gitlab-self-hosted",{"title":1211,"description":1212,"heroImage":1213,"category":484,"date":1214,"authors":1215,"slug":1217,"externalUrl":488},"Green DevOps: Why carbon measurement belongs in your CI/CD pipeline","CI/CD pipelines have a hidden carbon cost. Here's why measuring it matters, and how you can get started with Eco CI and Carmen in GitLab.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-07-09",[1216],"Lysanne Pinto","green-devops-carbon-measurement-cicd-pipeline",{"title":1219,"description":1220,"heroImage":1221,"category":484,"date":1222,"authors":1223,"slug":1225,"externalUrl":488},"How to build CI/CD observability at scale","This practical guide to GitLab pipeline analytics helps self-managed users gain operational insights using Prometheus and Grafana.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-28",[1224],"Paul Meresanu","how-to-build-ci-cd-observability-at-scale",{"promotions":1227},[1228,1242,1254,1266],{"id":1229,"categories":1230,"header":1232,"text":1233,"button":1234,"image":1239},"ai-modernization",[1231],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":1235,"config":1236},"Get your AI maturity score",{"href":1237,"dataGaName":1238,"dataGaLocation":716},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":1240},{"src":1241},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":1243,"categories":1244,"header":1246,"text":1233,"button":1247,"image":1251},"devops-modernization",[1245,1050],"product","Are you just managing tools or shipping innovation?",{"text":1248,"config":1249},"Get your DevOps maturity score",{"href":1250,"dataGaName":1238,"dataGaLocation":716},"/assessments/devops-modernization-assessment/",{"config":1252},{"src":1253},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":1255,"categories":1256,"header":1258,"text":1233,"button":1259,"image":1263},"security-modernization",[1257],"security","Are you trading speed for security?",{"text":1260,"config":1261},"Get your security maturity score",{"href":1262,"dataGaName":1238,"dataGaLocation":716},"/assessments/security-modernization-assessment/",{"config":1264},{"src":1265},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":1267,"paths":1268,"header":1271,"text":1272,"button":1273,"image":1278},"github-azure-migration",[1269,1270],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":1274,"config":1275},"See how GitLab compares to GitHub",{"href":1276,"dataGaName":1277,"dataGaLocation":716},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":1279},{"src":1253},{"header":1281,"blurb":1282,"button":1283,"secondaryButton":1288},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1284,"config":1285},"Get your free trial",{"href":1286,"dataGaName":516,"dataGaLocation":1287},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":987,"config":1289},{"href":841,"dataGaName":521,"dataGaLocation":1287},1786803745208]