-
Notifications
You must be signed in to change notification settings - Fork 333
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
Runs a standalone action along with a configured one #552
Comments
The check status labelled By default this check status is informational and non-blocking, unless there are |
The warning about the base branch not being found is because your CodeQL analysis workflow has not run on the target branch of the PR (in this case, For example: on:
push:
branches:
- develop
pull_request:
branches:
- develop |
@adityasharad Hey , thanks for the help man. on:
pull_request:
branches:
- '**' |
Depends what you are trying to achieve. Do you have PRs against all possible branches of your project? And are your PRs usually from branches of the same repository, or from forks? Could you narrow down the set of likely PR target branches? Then you could try something like: on:
push:
branches:
- main
- other-possible-target-branch
- ...
pull_request:
branches:
- main
- other-possible-target-branch
- ... For completeness, I should point out that you can technically do the following to run on every single push and PR from/to any branch, but personally I wouldn't recommend it. Using # Possible but not recommended
on:
push:
branches:
- '**'
- ...
pull_request:
branches:
- '**' |
You can also do: on:
push:
branches:
- main
- other-possible-target-branch
- ... # more branches here, but not all branches
pull_request: # no branches filter This will analyse any PR. But you'll get the best results, without the "analysis not found" warning you asked about earlier, for the PRs whose base branch is analysed by the |
Thanks this was really helpful. |
I have a PR-workflow file in my .github/workflow
Whenever a PR is created, a CodeQL action is being run from this config but an additional standalone CodeQL action is also created which fails with a warning
Error
Workflow example
What changes do i need to make , to stop the last action from running which remains unresolved with the above warning?
The text was updated successfully, but these errors were encountered: