Running & Adding codeql-analysis for all the branches of a repository

Hey GitHub Community,
I wanted to know if running codeql-analysis on all the branches of a repo possible or not.
The action should basically run on all the branches a PR is targeted to from the Main repository. I tried searching across github but couldn’t find anything.
Any help would be very much appreciated
image

Your asterisks need to be quoted ’**’

1 Like

Thanks a lot @kingthorin
Also should the square brackets be there or not along with the quotes and **

Since its a single entry I don’t think they’re necessary. I believe you want something like:

on:
  push:
    branches:
      - '**'
1 Like

Okay, got it. What if I just give it like the below image?

image

Would that work for my case too?

I’d have to double check the docs, but I believe so.

Silly me hadn’t even considered not specifying it as I was trying to stick close to your original :man_shrugging:

1 Like

Haha, I get that. Thanks a lot @kingthorin :tada:

1 Like