Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to Continuously Install or Update CodeQL Coding Standards Query Packs Automatically?#19513

Discussion options

Hello,

I have previously installed the CodeQL Coding Standards using the.zip release artifacts for analyzing an open-source codebase which is on C. This method works, but it requires manually downloading and unpacking new releases every time there's an update.

Now, I want to transition to a setup where I receive the latest updates to the Coding Standards query packs automatically, without manual intervention. Ideally, I'd like to use the codeql pack download command or any other mechanism that allows continuous updating of the latest versions when they are released.

I referred thisdoc for the installation

Could you please guide me on:

  1. The mechanism that allows for continuous updating of the latest versions when they are released.
  2. The recommended way to keep the installed query packs up-to-date?

Thank you for your help

You must be logged in to vote

Hi@Beeram12, our documentations don't say this but the@version part of the command to download the pack is optional. When not provided, it will install the latest!

So, if you have a script that runs

codeql database analyze ... codeql/cert-cpp-coding-standards

Then you can change that to run the update immediately beforehand:

codeql pack download codeql/cert-cpp-coding-standardscodeql database analyze ... codeql/cert-cpp-coding-standards

Or you can run the update on any other schedule that you prefer!

Let me know if that answers your question!

Replies: 2 comments

Comment options

Hi@Beeram12, our documentations don't say this but the@version part of the command to download the pack is optional. When not provided, it will install the latest!

So, if you have a script that runs

codeql database analyze ... codeql/cert-cpp-coding-standards

Then you can change that to run the update immediately beforehand:

codeql pack download codeql/cert-cpp-coding-standardscodeql database analyze ... codeql/cert-cpp-coding-standards

Or you can run the update on any other schedule that you prefer!

Let me know if that answers your question!

You must be logged in to vote
0 replies
Answer selected byBeeram12
Comment options

@MichaelRFairhurst

So it states that usingcodeql pack download codeql/cert-cpp-coding-standards downloads the CodeQL with the latest updates instead of using.zip files every time?

If that's the case, it would be very helpful while automating the installation and updating the tool using the command rather than installing it through the.zip method.

Great, Thank You

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@Beeram12@MichaelRFairhurst

[8]ページ先頭

©2009-2025 Movatter.jp