Dependabot cannot run CodeQL with error: 1 configuration not found #121836
-
Select Topic AreaBug BodyIt seems like this is a bug, but not sure if I am missing a setting. I have a repo setup with CodeQL, which runs correctly on any pull requests made by a contributor, however when our weekly dependabot scan creates PRs the checks always are blocked at the CodeQL Analyze step. The error is:
My workflow.yml: https://gist.github.com/ianhirschfeld/4b44f863393f4d28e0d0b9ac086928a5 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
|
Adding that, pushing an empty commit to the PR, kicks off the checks again which will then run codeql analyze properly |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for reporting this! |
Beta Was this translation helpful? Give feedback.
-
|
has this discussion been considered active feature/issue for using the default setup for code scanning with dependabot. The "default" setup greatly simplifies (especially enterprise organization) policies and enforcenments. Thus far I haven't had a use case to consider advanced setup; well until dependabot. What more interesting, seems you can't put a bypass in for dependabot (at least what I have seen). The bypass only work if you have active results that can be analyzed, not that you don't have results. For now we had to disable enforcement; consideration to move to advanced but wanted to see if there are options 6 months later from when this issue was first opened. |
Beta Was this translation helpful? Give feedback.



Thank you! It looks like you are using the default setup for code scanning, is that correct?
Default setup will not run on PRs from Dependabot.
You will have to switch to advanced setup to remove the requirement for the "Analyze" job and instead use https://github.blog/changelog/2021-06-03-control-which-code-scanning-alerts-cause-a-pull-request-check-to-fail/