Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CodeQL version to github/codeql-action/init outputs #2367

Closed
mschwager opened this issue Jul 10, 2024 · 1 comment · Fixed by #2368
Closed

Add CodeQL version to github/codeql-action/init outputs #2367

mschwager opened this issue Jul 10, 2024 · 1 comment · Fixed by #2368

Comments

@mschwager
Copy link
Contributor

Hi there,

I'm working on caching some query compilations and it'd be helpful to receive the CodeQL version as output from the github/codeql-action/init action. This could be done similar to the codeql-path output. It appears that this would require minimal changes in the following locations:

core.setOutput("codeql-path", config.codeQLCmd);

Add something like core.setOutput("codeql-version", await codeql.getVersion()).version).

And:

outputs:
codeql-path:
description: The path of the CodeQL binary used for analysis

Add something like:

   codeql-version: 
     description: The version of the CodeQL binary used for analysis 
@ginsbach
Copy link

Thank you for submitting this issue with the linked PR to fix it!
As the PR is approved, feel free to merge it after resolving the remaining merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants