Skip to content

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

@mschwager

Description

@mschwager

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions