Video: Trust What You Ship: Governance, Security & Code Quality in the Agentic Era | Duration: 4056s | Summary: Trust What You Ship: Governance, Security & Code Quality in the Agentic Era | Chapters: Welcome and Introductions (24.3s), Welcome and Icebreaker (114.895s), Speaker Introductions (211.71s), The AI Paradox (273.84s), Learning Objectives (430.365s), Poll Results Discussion (521.215s), Security Configuration Setup (640.745s), Security Configurations (1039.25s), Repository Rule Sets (1292.27s), Enforcement and Compliance (1566.085s), Transition and Poll (1860.155s), Legacy Systems Challenge (1871.115s), AI Security Scanning (2015.055s), AI-Powered Scanning (2138.38s), PR Security Review (2285.825s), GitHub Advanced Security (2458.355s), Code Quality Management (2677.295s), Audience Poll (2855.625s), Security Alert Management (2922.46s), AI Cost & Models (3254.08s), False Positives Discussion (3373.925s), Q&A Wrap-Up (3575.22s), Closing Remarks (3744.45s)
Transcript for "Trust What You Ship: Governance, Security & Code Quality in the Agentic Era": Well, well, well, look who it is. It visited... You again. Andy Dawes from Portland, Oregon. We meet again. Jesse Evans from Seattle, Washington. It's good to see you again. Hi, Marale. Great. Daniel Krause from Carl's from Germany. Welcome I'll say Carl's really, yes. Welcome. We'll give the popcorn. another minute or so to to slow down as people join. There's a lot of us today. Oh, Franklin of Salvador. Welcome. Oh, Francisco from El Salvador. Well, both those people from Iowa message each other, like, right after the other. I'm pretty sure they're right next to each other too. Hey. I was born in Iowa. I was born in Marshalltown, Iowa. So Marshalltown, Iowa. Marshalltown, Iowa. I still remember the fireflies. Little kid. That's cool. Yeah. I was born down here in Texas, and that's where I still am, in Texas. Because. Texas is so huge, it's really difficult to get out of it. It takes a long time. It takes all day even if. you fly. It really does. It really does. Alright. So, hello, everybody. Welcome to how to trust the code you ship. We'll get to more formal introductions in a minute, but I wanted to start with an icebreaker, because I'm just curious. What is something that you just don't do anymore now that you have AI? Put it in the chat. I don't do my taxes anymore, but that's been the reality for the last five years. Nothing to do with AI. I just don't do, taxes. okay. Just kidding. I do my taxes. IRS, calm down. If you're in this call, welcome. But that's just a joke, y'all. Allegedly. The IRS has. a sense of humor. Yeah. I see research. I I use I use AI to help manage my money too. I sometimes... I just want a second opinion. use Stack Overflow. I like that. Stack Stack Overflow has to change their business model because they can't be the, the start... The the stop for people to copy and paste code from. Now you just use AI to copy and paste code from. Yeah. Yeah. There's some really good ideas popping up here in the chat. Yeah. For sure. Never open a CSV and Excel ever again. I I use AI to, analyze and summarize the AI slot that other people send me to review. It's not a bad idea. Yeah. Alright. So keep those coming. And while we do, let's go ahead and and set the stage for today. So this is the welcome part. You are in the middle. We're going to spend very little time with slides and a whole lot of time in demos and q and a. So watch closely, think about the problems and the issues and the reasons that motivated you to set aside some time today to be with us. And, I hope that you get some answers, some takeaways, and some new things to try by the time that we're all done. So, Leo, introduce yourself to everyone. Absolutely. So my name is Leonardo Bouquinbayum. I am what's known as a field security specialist here at GitHub. My role here is to to be a product expert when it comes to GitHub Advanced Security, and I work with customers on how to, how to implement Advanced Security, why Advanced Security is a good solution for their application security needs, things of that nature. So I'm very customer centric, customer focused. Go ahead, Eric. Your turn. Awesome. Yes. My name is Eric Tuli. My GitHub handle is tuli with a two. And as my quote says, I I occupy the intersection between fact and hope. We all have, aspirations and dreams for how a technology or a tool can be applied to real world problems. Sometimes it's, straightforward. Other times we run into complications that we didn't expect. Where the rubber meets the road is probably where most of the people in this webinar operate as well. And the leaders can dream, the doers have to do. And so we're all here to make that possible and to make it more likely to be successful. And that is just getting more and more difficult. And these three graphs are, one way to illustrate this. Now these numbers are, what, six weeks old, and I'm sure that these hockey sticks are even steeper today given the the rate of growth of code. We have seen, in the last year alone, almost tripling the output of agents in terms of the the commits per month that agents make. AI also is really powering discovery that dependable alerts have have tripled over the past year, half a year even. And we've all seen some recent news about PHP, and we have fears about zero days and very little time to deal with some of the the risks that we're all responsible to mitigate. And this is... It's alarming. It used to be that we would have a backlog of alerts and you would prioritize them and you'd sign them to developers and and maybe things would land in your inbox and you'd have to figure out how do I balance this between, you know, I've got this this sprint and I'm supposed to ship this new feature, but I also have these, these bits of backlog that I'm supposed to burn through. But maybe I've got a little bit of time. I'll do this next week. That no longer feels like it's a safe choice. And so that's the that's the real paradox that we're all operating in today. On one hand, AI makes our lives faster. On the other hand, it makes everyone else's lives faster too. And some people are threat actors, and some agents are threat actors. It's not necessarily orchestrated with intent by a human being, but it's still our problem that we have to deal with. So what you will learn today and what we're gonna show you today is new ways that you can find vulnerabilities in code no matter who wrote it or no matter what wrote it and some new things that maybe you haven't seen from GitHub before are how you can do this in languages that weren't in the past supported by CodeQL. And in parts of the code base that weren't supported or aren't covered by by rules because there are some risks that rules just don't catch and recognize. We'll show you how you can turn these vulnerabilities and bugs into merge ready pull requests that you can just have assigned to Copilot and it does a lot of the work for you. And then finally, because as it... As most of us have experienced any type of of security that is optional or opt in, it really can't be really can't be trusted. So how can we set up the the rules and policies that govern level the playing field for everyone on your team and with all the teams in your organization so that we're all working towards the same standard? And so that when we're reporting up to the chain, you can say, yes. We're ready to ship, and you can trust the code that you ship. That's how to do it. And I think, Leo, that's in a very interesting place to start. Wouldn't you think? I'll say. Alright. I'm gonna stop sharing, and it's time to actually see how this all works. Take it I think we have a poll first, don't we? away. Oh, we do have a poll first. Thanks. Yeah. Let's put up the. poll if you can in our our moderators. I'll. give you a a sneak. which which of these costs you the most right now? Is it reviewing capacity that hasn't grown with code volume, a security backlog nobody has time to work down, exposure in code, no scanner covers, or nothing. Everything is perfect and peachy. Everything everything is perfect. Go ahead and and make a choice. Click submit. We're gonna see the results coming live on the screen because we're curious. Absolutely. And, also, during the during the demo presentation of this, if you would, please go to the q and a button and ask your questions there. We have. some excellent moderators here who are going to review those questions, and they're going to answer those questions to the best of their ability. And if they find a question that they think would be better answered on live here, they'll highlight that for us, and so we'll be able to answer there. So if you are tempted to ask a question in the chat, pause and be like, is this the best thing I could be doing right now? And the answer is no. The best thing you could do is go to the q and a section and post that question there. So remember, q and a, the q is for question, the a is for a. This is the right place to ask your questions. So please go ahead and do it there. Yeah. We would love to answer that one. Can we see the the poll results on the screen? There we go. Alright. So a lot of people are saying to, review capacity hasn't grown with the code volume, and that costs them the most right now. Yeah. Yeah. Relatable. Absolutely much. so. Alright. Let's let's close that pull down. Thank you very much. We've got a couple more of those to go, so please be ready with your vote... Voting buttons. And now, Leo, let... Let's let's let's walk through how all of this works. Absolutely. So what I'm going to start with, and we should be sharing. So, yes, we are. What I wanna start with today is I wanna talk about governance. So... And and turning things on first. So what is it that we're trying to do? Well, first and foremost, we wanna make sure, or what we want to be able to turn on are gonna be the features within GitHub that allows us to utilize deterministic and nondeterministic tools to scan our code, to be able to give us feedback about our code, where there are problems, quality problems, security problems, and then how can we address them in a timely fashion and potentially use AI to also address those issues and fix them automatically. So first, how do we get these things turned on? So, I'm gonna be working in two different places. In one, I'm gonna be working in Pandante Central, which is a GitHub organization. And then, on the other side, I'm gonna be working in a repository called Benefits Administration. And so for the governance piece, I'm gonna be focusing in the organization. A lot of things I'm gonna be showing can also be done at the enterprise. So when I'm talking about repository, organization, enterprise, I'm talking about the different levels within GitHub in terms of an enterprise being made up of multiple organizations and an organization being made up of multiple repositories. So small units, small student will be repositories. The biggest unit in the collection will be in the enterprise. But I'm gonna start in the organization since I'll have, access to many repositories within an org, and I wanna be able to apply a configuration as well as repository rule sets to make sure my tools, do get run at the appropriate time. So, first and foremost, in my organization here, I'm gonna go into settings, and from the settings, and it... I'll have to be an organization admin for this, or I can be an organization owner or a security manager to get access to this. But if I scroll down here into the left side, I should see advanced security, and I'm gonna go into where it says configurations. And once I'm there, I'm gonna be shown a list of my repositories as well as a list of my configurations, configurations that are created at the enterprise, and then configurations that are created at my organization level. So enterprise just means that any organization can apply these, and organization means I'm only be... I'm only scoping this to this one organization. Rule of thumb when it comes to GitHub and organizations is you wanna have the least amount of organizations possible. So if you're a large organization, you can sort of break... A a a large company, I should say, and you wanna break down your GitHub enterprise into organizations, it makes the most sense to do that by a business unit, or as as big of a measurement as you can so you have the least amount of them as possible, in which case you can put as many repositories in there. It just makes management as easy, as simple as possible, without having a lot of, like, organizations that it becomes a little bit more difficult to to manage and to control. That aside, what I wanna do is I'm gonna create a new organization, security configuration within my org here. So I'm gonna go ahead and click on new configuration, then I'm gonna customize it. So in these, you just need to name them. So I'm just gonna call this demo one. This is for a demo. And in here, I'm gonna turn on my advanced security features. So in this case, I'm turning on secret scanning, which is identifying secrets in my code base as well as in my discussions and my issues, as well as my actions log as well, which I think is in... Was in private preview, code scanning for scanning my code base using static analysis, and, of course, dependency scanning, using Dependabot to identify any sort of vulnerabilities that exist in my, open source dependencies. And I have a lot of different options here, but the things I wanna make sure that do get turned on are obviously gonna be my default setup for my code scanning. So that way I'm using CodeQL, a deterministic tool, that we use for static analysis to identify any sort of vulnerabilities in my code base. And, obviously, I can choose, like, what sort of runner I want to use. So I can say I wanna use a labeled runner, which could be a runner that I host myself. It could be a specified runner that is using Windows instead of Linux, or it's a macOS runner, or it's a very large runner with many cores and a lot of RAM in order to deal with some of those larger sort of builds and and scans they wanna be able to do rather quickly. Helio, Or I can just use might standard runner. K? you might need to reshare your screen. People are reporting that the screen isn't refreshing. Oh, I see. I can do that. see we see member appearance in product messages. Thank you everybody for liking this. Sorry about that. Oh, you know what? It's probably because I wasn't sharing the window or sharing the tab. So let me go ahead and go back to this. also very relatable. Yep. Okay. And so if I switch the tab, you should see that. Right? Yeah. Perfect. Excellent. Okay. So back to... Just to to recap this very quickly, in my security configuration here, the way that I got here was by going to my organization, settings, configurations. And then inside that configurations page, I clicked on this button, new configuration, which brought me over here, and that's where I added the demo one, and this is for a demo for my description. And then if I scroll down here, I have my secret scanning options, code scanning options, and my dependency scanning options. And, also, where I was able to specify that runner is gonna be this runner type over here, where I can specify I want it to be a standard runner, labeled runner, so I can customize what sort of runner I want, or I can just say whatever the repository setting is for that runner, leave that one as the default. Cool. So this would be the way for me to turn on my advanced security, tools for secret scanning, code scanning, and dependency scanning, and I can also, manipulate what sort of settings that I want. Now if I want to apply this to many repositories, I can do to... What I can do is go to repositories. I can select whatever repositories I want, or I can filter down my repositories based on a number of different criteria. And, sort of a best practice here is to use something called, custom properties or a repository properties. And this is a way for you to create your own key value pairs and assign those key value pairs to repositories to help categorize them in a way that makes sense for your business. So, in this case, I have a property here called purpose, and I can say this one's gonna be one of, let's say, production, let's say, production, or I could say it's gonna be one of, cool stuff or whatever the sort of things I want that particular, whatever sort of, like, key value pair. So the key here is purpose. The value is gonna be whatever that value is going to be, and then I can filter down my repositories based on what that purpose is. But for now, I'm just going to close this. And so what you'll see here is I also have a button here that says select all, so I'm gonna be able to select all of the repositories with my environment. I can go ahead and apply whatever configuration that's... I've already, created, whether that's an enterprise one or one that I created from an organization. So, for a lot of these, I already have a configuration assigned, these enforced all gas, no brakes. So this is a configuration that I have, turned on everything. And there's also this one thing called enforced, which means that only organization admins and security managers can change the configuration at the repository level, or in this case, they can change it at the organization level, and that will apply to every single repository that has that configuration attached to it. So when we enforce it, we're basically saying we only want a few people to make changes to the security configuration. If it's not enforced, then a repository owner can go ahead and turn on and off whatever sort of security features they want. So if you wanna lock it down, we want to enforce it. If we want to keep it open for repository owners to make any sort of customizations that they need to, you would not enforce that particular one. And there's also some options for you if you wanna make a security, security configuration a default for your private repositories, your internal repositories, or be the default for all public repositories, or just the default for all repositories from this point forward. So you have some flexibility there on sort of dynamically turning on or attaching security configurations to new repositories. So that's what we have for security configurations, making sure that we have our security, features turned on. The next bit is gonna be how do we turn on our quality settings. And so Code Quality is a new product that we have at GitHub. We, did a general availability back in July of this year, and we've seen a lot of growth and usage of this tool. And so what CodeQuality is gonna do, it's going to use the same engine that we use for CodeSecurity, CodeQL, but instead of using quality or rather security queries looking for security issues, we're using, queries that are designed for looking for quality issues, with CodeQL. And we also have a few AI features that I'll show you a little bit later that also help expand the usage of of code quality. But to turn this on, essentially, at the organization level is I can turn this on and select the repositories that match a filter, turn on everywhere, or say, you know what? I want my repository owners to decide if they wanna turn on code quality or not. So I do have some flexibility there, or say, you know what? I don't want code quality turned on anywhere. I want no repositories to turn on. That's also an option here. Now we know how to turn on security settings. We know how to turn on the quality, features. The next thing is, how do we actually get these things to be enforced at the, pull request level to make sure these things actually do get run whenever code is being moved from one branch to another, or rather merged from one branch to another? And that's where we go into the concept of repository rule sets. And so to get here, it'll be in the organization settings, under repository, and then rule sets is where we want to go. And here, I have a couple of options. I can say I want to have a rule set for a particular branch, a rule set for a particular tag, or a rule set for anytime someone's pushing code to, to their repositories, I want to make sure that there's rules that are in place whenever someone does that push. For now, I'm gonna showcase the the branch rule set because I wanna talk about how we're getting code from one place to another or merging from one branch to another. And so here, we're gonna call this protect... The protected, And I can specify, like, what sort of enforcement, if I want this to be active or I want to evaluate how this rule set is going to work before I make it active. That's usually a good idea to see what sort of feedback that you would get when people are using this. And then I can specify, you know, who can bypass this rule set. If no one's gonna bypass it, then I won't put anyone here. But then if I wanna say, organization admins or repository admins or security managers or anyone with write access, any sort of role or custom role that I've created, I can go ahead and add that to this bypass list, so those particular actors would be able to do those bypasses. I can also specify, you know, teams, agents, apps. These other types of entities could also bypass these rule sets if I set them here. Now, I can also say, hey, which repositories are going to be are going to have this particular, rule set attached to it? And I can say, I want all repositories to match this, I want specific ones, or I want ones that match a particular filter. So I can say, any repository that has a, a pending or prepending, like, a word or a pattern. So, one of the customers I used to work with, what they would do is for a particular application, this is one of the, the major airlines in The United States, what they would do is they would use, like, airline codes as a prepending, set of characters before their repositories to sort of label those repositories as a part of something. And so if I want to match a repository rule set to, DFW, for example, so any repository that has DFW as the first three letters of that, repository name, this will be automatically applied to those. So any new ones that start with DFW, I can go ahead and do that one. Write in the chat, what you think the DFW airline code matches up to. I think it's kinda obvious. Another one I'll ask you is PMI, which, PMI refers to what airport in the world. If you know it, throw it in the chat. In this case, I just want it to be on all repositories. Just carte blanche, everybody gets it. Here then, I say all repositories. Now I'm looking at a level lower as, like, the branches. So if I wanna include all the branches, if I wanna say only my default branches, or same sort of thing if I want to include a particular pattern to say everything that starts with PMI, every branch that begins with PMI or every branch that begins with feature or FEAT or or or something along those lines, I want this to apply to those branches. In this case, I'm just gonna say the default branch. So, by default, the default branch is main or master. You can always change what that default branch is. You're not limited to main or master. It could be something else. But, in this case, whatever that default branch is, that's the one that we are targeting. So, anytime someone is going to be moving code or merging code from one branch to the default branch, we are gonna be, applying this rule set. And so, now we have a bunch of rules here, so restricting creations, restricting deletions, blocking force pushes, requiring status checks to pass. So, if I have, like, a testing suite that I want to make sure that does get passed, I can select this, and I can specify what status checks that I want to make sure do get passed, requiring signed commits. But the things that I care about right now are my security tools and my quality tools as well as some AI tools. So I can say, I wanna require my code scanning results from CodeQL, and I want to fail that build or fail that merge if there are any high or critical vulnerabilities. And then if I say the same thing for code quality, same thing. If there's any errors or higher, or rather, warnings and higher, I can say, in terms of code quality, I want it to fail at that moment. I also wanna say with code coverage, I wanna say the minimum line code coverage is, like, 50%, and the maximum line drop would be 20. So if somebody's pushing code and merging it into my default branch and they have a code coverage of 20%, that's going to fail. But if they have a code coverage of 60%, it'll pass. But if we're seeing a difference in, like, they've added a lot of code, and that, dropped the the line coverage from, you know, 60% down to 40, that would be a 20% drop, in which case I'm gonna fail this as well because they're adding a lot of code, but they're not adding a lot of new tests. And so I wanna make sure that the code that is being introduced and put into my default branch, in this case, will be my production branch, I wanna make sure there's actually tests available for that so so we can make sure the code actually functions the way that we expect it to. And we have also a a couple of options here, like requiring secrets getting alerts to be resolved. So, for example, if somebody pushes code that has secrets in it, I I wanna make sure that we are not promoting that to another branch, that we wanna make sure that those secrets are either revoked and rotated, and then that secret alert is closed, as in, like, we've resolved this. That way we can go ahead and move forward. But if we are introducing code with live secrets and we're not revoking and rotating those and we're not saying that these things are being taken care of, I don't want that code to my production branch. So, I wanna make sure that, hey, we are requiring that these things get resolved before we do any sort of, promotion or merging from one branch to another. And then the last two things here are gonna be requesting Copilot code review to get Copilot to automatically provide us some feedback on our code in the pull request, and, of course, to require license compliance results. So, So this is a relatively new feature that we came out with, or rather, GAID, where you can actually specify a license policy at the enterprise, and then you use the rule sets to make sure that the licenses that are being utilized by your open source packages are aligned to your enterprise license policy. So if there's any sort of, like, copy left or any sort of, non permissible license that you're using with your open source software, your dependencies, that we don't allow them to be used or to, be, yeah, used in, like, your production instance, that we catch it at that particular pull request and say, hey. This is actually a violation of our license policy. Please use a different package or... And remove this package altogether so we're not, needing to use or to respect that particular license that is not compliant with our organization. So once we've established what sort of rule set that we want, we hit this create button. Depending on what enforcement status we've applied to it, it'll go ahead and be... And and, you know, start being active, or we can run this in evaluation mode where it's not going to block anything, but it's going to give us some insights on what does... What would get blocked if we run this. And if we, don't apply it, obviously, if we say if it's disabled, it's not gonna do anything for us. But that's how we're able to do rule sets at the organization level to make sure that the tools that we're using inside of GitHub do get applied and do get used in particular instances, whether they be, you know, merging one code from another... One place to another place or, you know, pushing code directly or, you know, changing things from a particular tag, whatever that might be. We have the opportunities to make sure these things do get run. So, with all of that being said, I'm ready to move to the next part of this. But before. we do, we do have another poll. So, I'll go. ahead and stop sharing. Yeah. Rebecca, if you could pop that poll up. Boy, this was... It's great to see how rule sets can enforce policy like this, but we also heard loud and clear that, there's a lot of code and you're the... You're stuck in the bottleneck. And don't worry. Hope hope is on the way. You saw, us show you how to specify... Make sure that Copilot is a default code reviewer. You've got more tools than that. So... But when it comes to what would matter most in your org for for broader coverage, Three choices. AI generated code shipping faster than your review, legacy mission control systems that nobody wants to touch, or quality and maintainability defects that slow every change. If you had broader coverage, how could this help? And, boy, we're very close to a tie. And this is good because we're all dealing with AI generated code. And if you are also dealing with legacy and mission critical systems, then then so far you've not been as well supported as you should be. And we do have some news to share with you about that. So kinda feel like that second one is... Like, that screams PHP to me. Yeah. That's very topical, isn't it? Yeah. And, I mean, I don't know if, like, a lot of these, like, LinkedIn posts and... Or tweets are true or not, but someone was saying that, you know, when this came out, the the system was like, where are we using PHP in our environment? And they're like, we don't know. And so they looked it up, and they found, you know, various places that PHP was being run. PHP was running this server that hadn't been touched in years. It was using a very old version of PHP, and they're like, the person who managed that said not to touch it. And every time they turn it off, like, billing processing stops working somewhere else. And so, like, well, we can't really touch this, processing stops working somewhere else. And so, like, well, we can't really touch this because we don't know how it works. The guy doesn't work here. You know, typical story, but that's, like, a huge. pain. So It's huge. legacy? mission critical systems nobody wants to touch, that's rough. Like, that's that's a that's a rough place to be. And, unfortunately, that's also my demo here. It's, like, sort of like modernization of going from COBOL to Java, but, yeah, we don't wanna... I don't wanna dive too much into that PHP rabbit hole right now. it. Yeah. Let's do it. Okay. So just to double check for Sandy's sake, if I switch tabs... Good. Alright. I am sharing my screen correctly. So now I'm in my repository. And so the first thing I wanna show you, we talked about repository rule sets and turning on things, with security configurations. Now I wanna show you, like, what that looks like at a pull request level. And so, before I do, there's one more thing I want to be able to showcase here that I didn't showcase in the other place because it wasn't there. We recently made generally available, one feature, which is this one, the AI scan for pull requests. So CodeQL has a limited language coverage. So it covers, like, c and c plus plus c sharp, Java, JavaScript and TypeScript, Ruby, Python, Swift, Kotlin, and there's always one that I'm missing. Did I say Python? I said Ruby and Python. Yep. So there's there's a list of them. And if you have questions about, like, what sort of things, are covered within these different tool sets, our documentation is, like, the best place to to find that. Or what you can do is ask an AI agent to answer that question for you because it's probably gonna look at our documentation and and give you an idea of, like, what's covered there. So, like, a lot of us said, like, we use AI for research. This is also a good place to do that too, just in case if I don't get to answer those questions, just letting you know there's an avenue there for you. A a current tool that is in public preview is AI scanning for repositories. And so what we're getting at by saying CodeQL has limited language coverage is that what we're doing with AI is we're also doing static analysis with AI. And so before, I said my repository has COBOL code and Java code. Well, CodeQL would only be able to scan the Java code. But with AI scans, I can actually scan my COBOL code as well and be able to identify issues in that COBOL code. I also have some bash scripts in there, some JavaScript type script, what have you. And AI will be able to give me some more ideas about what's potentially vulnerable with my bash scripts and my COBOL code, whereas, CodeQL, deterministically, will tell me what's... What are issues in my Java code and my JavaScript code. And we can also use AI to expand that stat... That SAST coverage on languages that are also already covered by CodeQL. So for, like, logic based issues that would be more difficult for us to identify with CodeQL, AI has that ability to understand a better context of that code base. And so we're able to get expanded usage of static analysis and get more results from our static analysis using AI, either at the pull request or in our repositories. So kind of two cool things happening there. Another thing that we recently made generally available is what we call agentic autofix. And this is where we're able to identify an issue and then agentically fix that issue. So that process is going to be Copilot identifies that we have this issue, or rather, CodeQL identifies that this is an issue. Copilot takes that issue, takes that alert, looks at the SERIF, looks at how we suggest this gets fixed, other pieces of relevant information that we're using as context. And then it's gonna go ahead and create a fix and then apply that fix. And then whatever code that it generates, it's also going to use CodeQL, as applicable to make sure that the the code that the agent is writing isn't introducing more vulnerabilities. And it's also using as a way to verify that, hey. We've actually fixed this because the vulnerability that was found previously is is no longer found on the subsequent scan, so that means that we fixed it. And so we're using our own tools as a part of that agentic workflow in order to make sure that we're not presenting additional, problematic code with that particular fix. And then we apply that fix, and then we add that to the PR. The PR is gonna go ahead and run CodeQL again to make sure that, hey. We've actually addressed it. And so when it finds that from that subsequent scan that that, scan no longer has that vulnerability that we found before, fixed it. And so that particular finding will go ahead and be minimized and silenced in that PR, so that way we can move forward. So it's really just a click of a button for me to start that process and then get feedback and then have things, be done in the background. So we can do that agentically very, very easily. Another thing I wanna remind you all is that GitHub Universe is next week, and GitHub Universe is our big yearly, conference that we do in San Francisco. A lot of the things that I'm talking about here, and other things that we're kinda, like, previewing here, like reachability analysis for Dependabot, we're gonna get a lot more details about those at Universe. So if you have a chance to go there, if you have a chance to, you know, view the streams, for free online, please do and check them out. And if you don't have a chance, there's always gonna be recordings of those afterwards as well. And if you just haven't gotten a chance and you wanna talk to a hubber and and kinda get a a a understanding, like, what we talked about universe, please feel free to reach out to us afterwards, and we can give you more information about that. But let's actually look at, like, what this stuff looks like in practice. So, here I am in my repository here, and I want to go into one of my pull requests. And so here's a list of my pull requests. And I have one that I opened about twenty hours ago, and this is where I'm adding in a a a dashboard that will allow me to... And you can see, like, all of this stuff I built with Copilot. So thanks, Copilot, for helping me build a cool demo. But I probably should told Copilot, hey. Don't make it so obvious that it's a actual demo, but, hey. I do what I gotta do to get Copilot to write me vulnerable code because Copilot does not want to write me vulnerable code. Okay. You also might be wondering, like, hey. What's up with this different sort of PR view? This is also something that we've been working on, this new PR view, and also something that we'll be talking about at Universe. But I digress. So what we can see here is gonna be the summary of, you know, what, you know, Copa, in this case, created for me. What we'll notice here is, like, when I start looking at the comments, I'm getting some things from Copilot code review. I'm getting some things from... Let me see. There should be Here we go. This is what I'm looking for, the GitHub Advanced Security. So everything before that was, like, Copilot code review. So using code review to understand, like, where I can fix some things that would be, are problematic. Maybe there are security issues that CodePilot CodePilot, presents to us. They could be quality things. They could be things, such as, like, logic errors, things of that nature. I have some of that capabilities. And if I wanna ask Copilot more about it or add this to a batch of fixes, I can do that, or I can just commit the suggestion, right then and there. And that way, it'll go ahead and rerun any sort of test that I want to run. But But from a security perspective, I wanna look at what we get from these GitHub Advanced Security, results here. So here, for example, I'm getting one from our bot here. This is gonna be from CodeQL. And if I click on show pass, it's gonna show me from source to sync what that data flow is. So what data is coming in? Is it tainted? Most likely. Probably. We have to assume that the data is tainted, meaning that there is probably something, malicious as a part of that data, and we're accepting it into our code base. But the problem arises, not from the tainted data, but what we're doing with that data. If we're not doing anything or creating any sort of barrier between the source and the sync, then we're just letting that data come through our code base and then get executed or put somewhere else. In this case, we're building a SQL query from user controlled sources. So a user is providing us some text. That text can have some malicious data as a part of it, not necessarily malicious data, but really just utilizing, features of SQL against itself. So it could add things. It can remove things. It can mess things up in our database. We don't want it to be able to do those types of things. So we wanna make sure that we can, remove that text, remove special characters, create some sort of validation or sanitization step between what we... When we get that data and then what we do with that data afterwards. And so as I go through here, you can see at the very bottom here is my sync, and this is where we're we're executing that query against our database. So, source, data coming in, sync, data coming out. And since there's nothing in between these two spaces that is preventing or or removing any sort of san... Any sort of special characters or sanitizing that data, it's most like a... It's a vulnerable path. It's like a a, a fenced in compound with a wide open gate, essentially. Anybody can come in, anybody can come out, and nobody knows who's coming in and coming out of that particular gate. So I can see that right here, and then I can also see a suggested change. So in this case, it's using the java. Sql dot prepared statement and using prepared statements to make sure that any sort of data that were coming in were not including the other, malicious text that will be a part of that tainted data. And so we can go ahead and take this, commit it, add it to a batch, or ask Copilot more questions about it or ask Copilot to make some changes, and we can go ahead and do that from a AI perspective or just directly take what the AI thinks is how we can fix this. Below that, let me see, we have some code quality issues here. So in this case, we have a a light code quality issue that we've created a variable, but we don't actually use that particular variable. So we just have some dangling text here that isn't really doing anything for us. And so here is where we find it, and then here is a suggested change. Just remove these three lines because they're not doing anything for us. And, again, we can commit this, and we can move forward. So, again, like, we're using CodeQL to identify for security issues, but we're also using CodeQL to look for code quality issues too. Now here's another cool thing. As I said before, CodeQL does not support COBOL, but AI scans for pull requests do. And so in this case, we have some COBOL code here, and we've identified, an issue here. And so we explain what that issue is. And then we also explain how we can fix that particular issue. So here's the code that we're taking out, and here's the code that we are, adding in to help with, solving that particular issue. And it goes... And it continues down. So right here, we also have this feature for code coverage. And so we have a workflow that determines, you know, hey. How much of the code are we introducing is covered by tests? We're using, Covitora format and uploading that to our our code quality API so we can get these types of reports in our pull request. And we're gonna do more with that in the future. I don't wanna focus too much on code quality here, but there's a lot of interesting and good things that are part of that product. But in terms of usage, as we saw in the, repository rule set, we can apply that rule here. So, if we're seeing, like, a percent increase or percent decrease in the code quality that we're, or rather in the, amount of code coverage, that's where that's where we're gonna catch this and then prevent that from moving forward. So there's a lot going on here, and anytime I can commit, I can go ahead and add these changes to batches, and I can just have Copilot fix these things for me. It already identified fixes. We can go ahead and apply those fixes. We can go ahead and get those fixes checked, and then it's gonna go ahead and merge this PR, or we can merge this PR automatically. We can do it ourselves after a a person review. But through the first part, we can get Copilot to help clean up some of these issues. So whenever someone does come in to review it, they're reviewing much better written code or code that doesn't have as many vulnerabilities or code quality issues moving forward. So, there is a lot going there. So, I'm gonna go ahead and pause here for a last poll, and then we'll go ahead and complete with what the AI scans for repositories will look like. Yeah. So here's here's the operative question. We've shown you how AI is doing some of the work for us, assigning vulnerabilities and alerts to Copilot. Would you hand your backlog to an agent? Are you already doing it? Are you ready to start? Do you have some more questions? Where are you at? Sure. This is really pretty even. I think we we all wanna see more. If confidence is, I've seen. We've... I've been keeping an eye on the q and a, and keep those questions coming in because we're gonna... We wanna answer as many of them as we can. So so so. let... Let's let's kick into the to the last step, of the demo there, and then we can move on to q and a. Okay. I'll make sure I leave, some time for us for q and a because I know we're running a bit long. Okay. So we've talked about setting up configurations and repository rule sets. We've talked about what that looks like in practice inside of a pull request. Now let's talk about what things look like from a backlog perspective. So three things I wanna talk about. Obviously, what an alert looks like, whether that alert is from CodeQL, or an AI scan, what those AI scan alerts look like. And then third, I know I said one, two, but one and two are pretty closely related. But the third thing is gonna be agentic auto fix. Like, what does that actually look like, and how can we start enabling that? So let's go ahead, and what I can see here is my code scanning tab. I can go ahead and look at my tools, and I can specify if I wanted to look at my CodeQL only findings or my AI scan findings. I'm gonna click on CodeQL for now just to look at those findings really quickly. I can click on this one, deserialization of user control data. Again, same thing. I can look at my source and sync or source to sync, that sort of data flow, so I can get an understanding of where that data is going and what touches that data. I can get more information on what this particular vulnerability is and how it's potentially exploited. And then what I can do is I can say, hey, Copilot. Go ahead and fix this. So this one, I've already done. So if I hit create a pull request, it'll show me what pull request it created, and it'll take me straight there once I click on it. And so it'll show me, like, what it did to fix this. So, for example, if I look at, files changed, it'll show me what sort of things... What sort of changes it made to address this particular issue. And so if I'm reviewing this and I'm thinking, hey. You know what? This actually looks pretty good. It is removing that vulnerability and changing it so that, we are no longer vulnerable to this. That's excellent. That's what I want to be able to see. Then I can go ahead and review it, say I approve or I comment this or I want some more changes. And I can have Copilot continuously make some changes on this particular PR. So, again, with Copilot Autofix, or rather, agentic Autofix, it'll go ahead and run that process agentically and then create that PR for me. I just need to review it, say it's good, and then move forward. I don't have to do much more than that. Now, to look at my AI scan results, I think there was a question in the chat. It was like, what's the difference between Copilot code review and AI scans? And the big difference is that Copilot code review is, like, a code review, more general purpose type of tool, whereas AI scans is looking specifically for security vulnerabilities. So it's gonna be the scope is gonna be different, and AI scan can run-in a pull request, but it can also run on your backlog too, or rather it can run on your code base to create alerts in your backlog, which is what we're seeing here. Copilot code review does not do that. So, here, I'm looking at everything that is part of the AI scan. And so, if I want to look at, let's say, for example, I have a bunch of Bash script ones here, some Java, some Vue. Let's see. Let's look at this bad boy right here. So it said, hey. We found a a a, a secret in your COBOL code. Crazy. And so I can say, hey. Assign this to Copilot. Copilot's gonna go ahead and look at this data from the AI scan. It's gonna go ahead and create a fix. It's gonna ahead... Make a pull request for that fix. That's all I had to do was click that button, and it's gonna go ahead and start working in the background. Same thing if I'm looking at any other type of vulnerability here. So, for example, if I wanna look at something else that's from AIScan, like this one, ClearText transmission of Sensitive Information. So we're sending things over FTP, which is not a secure way of doing so. And I can go ahead and get that information here, see where that issue is, and then go ahead and assign this over to Copilot to go ahead and fix it. So really, really fast and easy to, one, identify the issues and then go ahead in fixing them. How do you run an AI scan? And this is the last thing I wanna cover before we jump into q and a, and that's gonna be up here in this button that says AI scan. I basically just press this button here, and it's gonna start the AI scan. And so it's gonna look through my code base. It's going to, you know, ignore specific directories like tests and vendors and things like that, and it's just gonna look at the code that I really care about. And something that we're also gonna be announcing at Universe is the ability to do what we call, like, a deep scan using a tool called MDash from Microsoft, and that's gonna provide us an even deeper level of scanning on the code base to give us, a better idea of, like, where are we potentially vulnerable, more so than what a standard scan can do. A standard scan is is great for your everyday general purpose, but for, like, your critical applications, if you want, like, a deeper level of scan, the deep scan will be your best bet there. That's something that's in private preview right now, and more details about that at Universe. But I'll go ahead and stop talking for now, and we can jump into Q and A and answer any sort of those burning questions that y'all might have. Thanks, Leo. There's so much to see and, and a lot of great questions have been coming in and there is a common thread here on the AI part. And I just saw another note from, for yanxi, you know, like, how much how much does it how much does it cost? What models are we using? How is GitHub making this affordable? Because we have we have budgets, we have constraints. Two years ago or so, when we first launched Copilot Autofix, for example, there was just one one model. And it was kind of the... Remember when we were all, like, doing our prompt engineering, one shot prompt, trying to get something done with one prompt? Well, that's just not how anything works anymore. It's all iterative. And, you know, an agentic Autofix doesn't do a one shot. It explores the code base. It looks at the context. It tries to simulate the outcomes and then picks the best path forward and tests it again. So, GitHub has a strong incentive to try to deliver the best performance the most quickly, at the least cost to developers because, you know, you are our, you know, you are the ones who care about the most is the developers where, a lot of false positives just get in your way. You just can't tolerate it. And nor can you tolerate tools that are are expensive or or unaffordable or you can't scale to the scope of the problem. We do have some very cool new stuff that we'll be talking about at at GitHub Universe, and and shortly thereafter that... But there's there's no one simple answer to what model is underneath all this because the answer is is more than one. And and it could be situationally dependent. And we're working hard to try to make it, scalable and affordable for everyone too. So, just to try to cover a lot of questions all at once that was that was that was an attempt there. I I do wanna surface to you, Leo. This is this is a good answer I think that we can give. You know, we looked at how you're configuring gas configurations. Is there a way that that we could do this, you know, as code? You know, do I have to go through the UI and pick all these things? I'm thinking that we could use the rest API. The risk API is one way, and another way is using Terraform. I haven't seen the Terraform, the... If there's any updates to the Terraform provider for... Or the GitHub provider for Terraform, but I would look in that direction to see if you can do security configurations with Terraform. But the REST API is also... I mean, Terraform would be using the REST API anyways, in a sense. So that's, that's something I would look into. There was a a question in the chat that came here, like, would GitHub code security or gas come to Azure DevOps? And there's actually... There is, GitHub advanced security for Azure DevOps. That is a product that you're able to look into. That is where we have code scanning. We use CodeQL for that. There is Dependabot, but it's like a different Dependabot. There's also secret scanning that's a part of it. It's not feature parity one to one. All the new stuff and the AI stuff is coming out on GitHub first. But if you're looking for... I need static analysis, secret protection, and software composition analysis, GitHub for GitHub for... GitHub Advanced Security for Azure DevOps or what we call a GASDO, that's gonna be your best bet there. Prudential also asked, you know, what... What's the false positive ratio for these findings? That's an odd question because it depends on what you consider a false positive to be. Now I I know, there there are other companies that say, like, well, we have, like, a 10% false positive rate, and they base that on measuring against, like, benchmark types of, like, intentionally vulnerable applications. And I don't know how helpful that is because nobody makes their applications intentionally vulnerable unless they're trying to demo something or they're trying to show something. So we don't really publish anything like that because we just don't think it's very helpful or really... It doesn't it doesn't really hold a lot of weight when under scrutiny. And, again, like, a false positive can be... I mean, in in isolation, yes, this is vulnerable, but the way that our architecture is set up, it's not vulnerable. Like, nobody can touch this because it's six feet underground, not connected to the Internet, so how can someone get to it? That's fair. Like, maybe that is a false positive in your perception. But static analysis by itself, it doesn't know what your environment is. It doesn't know where you're running your code. It's just looking at the code and saying, like, based on what I understand, something to be vulnerable, this looks vulnerable. And then as a security person or as a a developer, I have to look at that and say, based on the context that I know, is that truly vulnerable? Yes or no? And I think as we move forward, agents are gonna be a lot more helpful in helping us sort of, like, narrow that down even better because agents will be able to carry that context with them and then evaluate that. I can't say that's, like, a product that we have right now, but it is something that we are thinking about heavily at GitHub, specific on the security side. Yeah. And, what I can tell you about how CodeQL and AI scan will be working together is, calling it a hybrid scan sounds a bit market easy, and I am a marketer. It's true. But, we do make a point to try to use each technology in the areas where they both have strengths. Rules will... Where rules apply and reasoning where reasoning is worth the tokens. And one way that we do that is by identifying duplications and areas that we think are are less reachable and making sure that those have a lower priority or a lower score so that you have a better idea of what really deserves your attention and action and therefore would be governed by the policies that we set up at the beginning of of the demo section. Alright. Do we have more more questions in q and a that we can get to? We won't, we're at the top of the hour. Let's just take one more question. Boy, there's a lot of them. Yeah. So I think... I mean, obviously, the token cost is is a is a theme that I'm seeing a lot of. What I would say is, there's also another interesting question. Like, are some of these scans tools available for non GitHub code? For For things to be, like, for GitHub Advanced Security, the code needs to be in GitHub, because we license by a contributing developer. And so if you're using Bitbucket but you wanna use GitHub Advanced Security, doesn't make a lot of sense because we don't know how many developers are on Bitbucket, for example. So GitHub Advanced Security is really geared towards using... Being a part of the GitHub platform. That's sort of like the value is everything sort of built in. But we understand, like, there's people that are on on multiple, source source control management platforms. And so at the very least, you can mirror your repositories in GitHub and then pay for advanced security and then be able to use, advanced security features on the code that's existing in GitHub, even if active development is happening elsewhere. That's another way to to work with that. But it's not gonna... Like, secret protection isn't gonna work on your GitLab repositories, for example. And, by the way, GitLab and GitHub are separate companies. You won't believe how many people come up to us in, like, in, like, trade shows and whatnot and conferences. They're like, you know, aren't aren't GitLab and GitHub the same thing? It's like, no. An apple and an orange, they're both fruit, but they're very different fruits. Like, they're not the same thing. You know, when I first started working at GitHub years ago, my my... I told my mom that I had this new job with GitHub, then she's like, oh, no. We use DoorDash. It's like, Yeah. no, mom. Not Grubhub. It's it's GitHub. And, and we still we still chuckle about that today. That's, fine. hey, thanks. Thank you everybody for sticking with us through through the end of it here. There are a lot more questions. I wish we could have gotten to them all. But, what what I want you to leave your understanding is that, if developers actually see vulnerabilities in their workflow and can take action on them, that doesn't slow them down. That doesn't mean they're gonna miss their deadlines and and fail their sprints. They're likely to do something about it. And one way to do that is by assigning these vulnerabilities to Copilot. So you get a merge ready pull request instead of needing to take the effort to to do it manually. And then the way that we can feel confident in making that sprint and shipping that new feature is with the rule sets and policies that we set up in the first place. So we know we're not going to be shipping code with a secret. We know we're not shipping code with a a high vulnerability. These are the ways that GitHub is trying to make it possible for you to ship quickly in a way that you feel comfortable with, that you can stand behind. We've made a lot of of new releases this year. You've probably noticed the the frequency of change logs coming out for GitHub. There's a lot more coming out very, very soon. So please stay tuned. We would love to talk to you more. And watch your email for a follow-up and a thank you. We'll have links to this recording. We'd love it to share it with your colleagues. And, of course, all of us at GitHub are are grateful for you. We welcome you to our community if you're new, and we look forward to seeing you next time. Bye. Thank you all so much.