Skip to content

Autobuild Error for Javascript-Typescript #2697

Closed
@juleszembik

Description

@juleszembik

Hi team,

Looks like my team is experiencing issues with codeql autobuild process. It seems to not be able to find this command:
codeql database trace-command --use-build-mode --working-dir

The full error we're seeing is this:

Error: 1-15 19:51:18] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/hostedtoolcache/CodeQL/2.20.1/x64/codeql/javascript/tools/autobuild.sh]) A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.20.1/x64/codeql/javascript/tools/autobuild.sh] Error: Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.20.1/x64/codeql/codeql database trace-command --use-build-mode --working-dir /home/runner/work/repo_name/repo_name /home/runner/work/_temp/codeql_databases/javascript". Exit code was 2 and error was: A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.20.1/x64/codeql/javascript/tools/autobuild.sh]. See the logs for more details.

Is there something missing from the workflow process? The codeQL workflow is pretty standard when running this step.

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v3
      with:
        category: "/language:${{matrix.language}}"

matrix language is javascript-typescript

We're not too entirely sure what could be impacting this issue as it is currently running on Github Hosted Runners. Any direction would be helpful! Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions