SAST analyzer not running when parent has workflow rules

Summary

I created my own sast analyzer on a separate repo, with custom scripts and all, so that other teams could include it in their repositories using a "includes" keyword. Unfortunately, I've noticed that the analyzer does not run whenever the parent yml has workflow rules. This is what the workflow rules are set to in the parent repository's gitlab-ci.yml

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "staging")
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != "master" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != "staging"

Steps to reproduce

Add the above workflow rules into a parent gitlab-ci file, then include your sast analyzer using an includes keyword.

Example Project

What is the current bug behavior?

The build stage does not appear in the pipelines

What is the expected correct behavior?

The build stage should appear, and the child repo should not inherit parent workflow rules unless specified.

Relevant logs and/or screenshots

With the workflows enabled in the parent:

image

Without the workflows:

image

Any help is appreciated - thanks!