codeql-action icon indicating copy to clipboard operation
codeql-action copied to clipboard

Autobuild using CodeQL CLI

Open henrymercer opened this issue 1 year ago • 2 comments

This PR implements autobuilding using the hidden database autobuild CLI subcommand. This simplifies the implementation of autobuild, opens the door to sharing more code between the CodeQL Action and third party CI for CodeQL, and enable us to more efficiently implement new features like improved diagnostics for autobuilders.

We will gradually roll this out for CodeQL CLI 2.12.6 and later using the code_scanning_cli_autobuild_enabled feature flag. While the CLI and Action implementation of autobuild is very similar, we will not enable this by default on GHES 3.9 to reduce risk.

Merge / deployment checklist

  • [x] Confirm this change is backwards compatible with existing workflows.
  • [x] Confirm the readme has been updated if necessary.
  • [x] Confirm the changelog has been updated if necessary.

henrymercer avatar Mar 28 '23 16:03 henrymercer

Moving back to draft as there's some more work here to send telemetry about the set of languages we tried to autobuild and the language that failed, if relevant.

henrymercer avatar Apr 05 '23 13:04 henrymercer

Makes sense — let me know when you want me to take a look!

angelapwen avatar Apr 05 '23 16:04 angelapwen

Closing this in favour of using build modes and having database trace-command --use-build-mode determine how to extract the code.

henrymercer avatar Feb 28 '24 16:02 henrymercer