-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Unable to validate code scanning workflow: error: getWorkflow() failed #18279
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
Comments
Hi @parsley72, Thanks for you question. The This workflow should be available if you perform a The To provide some further guidance we need to see the full workflow to better understand your use case. |
For reasons the
so the root of the repo is in that directory. |
Thanks, that clarifies. It seems we don't take that into consideration https://github.com/github/codeql-action/blob/dd7559424621a6dd0b32ababe9e4b271a87f78d2/src/workflow.ts#L261 I will file an issue and determine how we can resolve that. |
Hi @parsley72, If possible to share, we would like to understand the reasons/use-case for checking out the repository in the non-default path |
It's a Yocto build. We checkout the Yocto build then checkout the application source code into the source directory to build it. |
Thanks for sharing! Your issue has been reported to the team who will triage and determine how to address it. |
We have a similar use case with the MegaMek repositories with cross build dependencies which require other repositories cloned within the actions to build correctly. Composite Gradle builds. The project was setup before Git was around and moved over. Very old code base so no better way at this time to do it. Would love to know how to get this to work properly as 2 of the repositories shows errors for CodeQL because of this. |
When I run my build it includes this step:
I'm getting this warning:
But the repo isn't being checked out to the root of the directory, as explained in
source-root
. Is there any way of telling CodeQL to look in the subdirectory to find the workflow?The text was updated successfully, but these errors were encountered: