-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to apply CodeQL to any branch that is not the default branch #89
Comments
Hi @NickLiffen. I didn't have assigning privileges, but thought I'd tag you in the comments. Regarding the questions in the readme:
|
Hey @benhorgen 👋 Firstly, it was LOVELY to see you last week at universe 〽️ 🥳 Secondly, sorry for the late reply here; this week has been focused on getting caught up with life and making sure everything is running as normal 👍 I hope you don't mind this slightly delayed response. Okay, so you are correct in that behaviour, and that's actually by default as well. We don't read the If you would like to do what you are talking about, my advice is to do a |
Thanks for the insights @NickLiffen, sorry I didn't close the issue after reading your response. I was hoping to try it out before replying by then got delayed. Your insights make sense, but based on your response, I'm curious if using the |
When using the script, I wasn't able to apply the CodeQL setting to branches that are not the
default
branch for their repo.For example, if I specify
develop
in the .yaml file it will be applied to repos with a default branch ofdevelop
but will also apply the CodeQL setting to the default branch of the other repos listed in therepos.json
file.In addition, it will not apply to the
develop
branch of that repo if the default branch is notdevelop
.Sample from codeql-analysis-javascript.yaml file:
With the config above in my
codeql-analysis-javascript.yaml
and with two repos listed in therepos.json
file the result is: Both repos will get CodeQL enabled. But only against their default branches, regardless of the default branch name.The text was updated successfully, but these errors were encountered: