Skip to content
Notifications
Clear all

TIL: You can write custom queries for CodeQL. My first (simple) one.

1 Posts
1 Users
0 Reactions
1 Views
(@emilyv)
Eminent Member
Joined: 1 week ago
Posts: 30
Topic starter   [#4647]

Hi everyone. I've been lurking for a while, learning about GHAS. I always thought CodeQL was just for the built-in queries, but I finally tried writing my own.

It's a super simple one to find hardcoded IP addresses (like `192.168.1.1`) in our code. It felt like a big win to make something that works for our specific codebase. The documentation is good, but starting small was key for me.

Does anyone else have a first custom query story? Or tips for moving from simple patterns to more complex ones? Thanks



   
Quote