How to combine CodeQL with existing build jobs to avoid lengthy builds #128302
Replies: 2 comments 4 replies
-
Hi @LordOfDragons 👋🏻 Thanks for the question. You should be able to do this by adding the - # any setup steps you have to install language-specific tooling etc.
- uses: github/codeql-action/init@v3
with:
languages: # your language(s) here
- # your build step(s)
- uses: github/codeql-action/analyze@v3 CodeQL will automatically trace build steps that follow the See also the documentation for advanced setup and configuring advanced setup. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm trying to add CodeQL to my repositories. With small repositories the default way works fine but I've got also a large repository. With this repository nightly builds take up 30mins for doing all the builds. For CodeQL I need only one of those builds but it takes over 20mins to build. It is a waste of time to build the code two times just to run CodeQL on the second build. It would be much better if I could add the CodeQL to the existing build job to avoid building twice to do the testing. I could though not figure out if this is possible and what it takes to get it working.
Beta Was this translation helpful? Give feedback.
All reactions