Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCannot access CodeQL environment variables in `database create --command` #2
Comments
|
The expansion that fails seems to be the one that happens in line 90 of It is not clear to me why |
I would like to explicitly invoke the JavaScript autobuilder as part of
codeql database create, with the ultimate goal of passing it some custom options. However, even invoking it without any options isn't as easy as I would have hoped, since I cannot figure out how to access CodeQL environment variables to specify the path to the autobuilder.My first attempt of
codeql database create -l javascript --command '${CODEQL_EXTRACTOR_JAVASCRIPT_ROOT}/tools/autobuild.sh /path/to/databasewas met with
@lcartey suggested adding
env.like so:codeql database create -l javascript --command '${env.CODEQL_EXTRACTOR_JAVASCRIPT_ROOT}/tools/autobuild.sh' /path/to/databasebut that resulted in
I am pretty sure this is the right environment variable name, cf. here.
Specifying the full path to the autobuild script is, of course, possible, but annoying.