GithubHelp home page GithubHelp logo

Comments (5)

edoardopirovano avatar edoardopirovano commented on August 22, 2024 2

Seems sensible, I can take a look at this next week.

from codeql-cli-binaries.

edoardopirovano avatar edoardopirovano commented on August 22, 2024 2

Added! The flag is --overwrite and should be in CLI 2.5.7+.

from codeql-cli-binaries.

edoardopirovano avatar edoardopirovano commented on August 22, 2024 1

Added! The flag is --overwrite and should be in CLI 2.5.7+.

Correction: This will make it into 2.5.6 as we had to restart our release testing of that due to some issues.

from codeql-cli-binaries.

gaurav-t-sca avatar gaurav-t-sca commented on August 22, 2024

Having a similar issue, but with the CodeQL Github Action. The first run works, but subsequent runs fail during the "Initialize CodeQL" step:

      Exit code 2 and error was:

      A fatal error occurred: Refusing to create database: '/opt/actions-runner/_work/_temp/codeql_databases/python' exists and is not an empty directory.
Please specify a different location, or use the --overwrite flag to overwrite existing CodeQL databases.

I tried adding steps to delete that folder with rm -rf and even with find ... -delete but the files don't seem to get deleted and the error persists. Is there a way we can use this --override flag with the Github Action? Or maybe if --override isn't specified, check the value of an environment variable or something (since those are easy to set up with github actions)?

Thanks in advance!

from codeql-cli-binaries.

hmakholm avatar hmakholm commented on August 22, 2024

@gaurav-t-sca: It is not totally clear what you're doing to get that error. The CodeQL Action doesn't support running CodeQL more than once in the same job; there are deep architectural barriers to that, which are not limited to the location of the database.

It this is not what is happening here, please open an issue against https://github.com/github/codeql-action and include information about your environment (i.e. your workflow file; do you use a self-hosted runner of a GitHub-provided one; if possible a link to a failing run, etc).

from codeql-cli-binaries.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.