Home / Help centre / Integrations & API
Integrations & API
Why didn't the CI workflow run when I pushed to my feature branch?
The generated snippet triggers on pushes to main and on a manual run only. A push to a feature branch does not match, so the job never starts. Add your branch to the branches list in the workflow file, or start the workflow by hand.
Why this happens
The page describes the snippet as a way to trigger a scan of a profile on merge, and it lists main as the only branch. So a push elsewhere starts nothing. That is how the file was written, and not a fault in Cyberlop.
How to fix it
- Open
cyberlop-scan.ymlfrom the first tab of Integrations in your repository. - The snippet says
on: pushto branches[main], plusworkflow_dispatch. - Add the feature branch name to the branches list, or use a pattern that suits your team.
- Use the manual run option in your code host’s workflow page and choose the branch.
- Confirm
CYBERLOP_URLandCYBERLOP_API_TOKENexist as repository secrets.
The job is also non-blocking. It prints findings to the build log and never fails the build. So when it does run, a green build does not mean there were no findings.
Still not working?
The target’s Repo branch decides which code the scan reads, not the branch that fired the job. A target set to main reads main. See why a scan tested main. The second tab’s snippet is for the other supported code host, and its capture did not list branch rules, so read the file you copied. More: when the CI workflow runs and why CI passes with findings. You can also use the contact page.
Related questions
- When does the generated CI workflow run?
- How do I trigger a Cyberlop scan from my CI pipeline?
- How do I copy the ready-made CI workflow for my code host?
- How do I scan a branch other than main?
- Can I scan a specific commit instead of the latest one?
How to add security scanning to your CI/CD pipeline
Step-by-step, with annotated screenshots.
Updated · Back to the help centre
Wiring it into your pipeline?
Share what you are building and we will help you set up the right token, profile and job.