Skip to content

Unable to trigger policy violations- evaluator.rules.kts file #6960

@kvy1kor

Description

@kvy1kor

Hello,

We have written the policy for our project use cases which would trigger copyleft policy violation if the project use case matches certain conditions as shared below and this is working as expected.

image

If i add few conditions as mentioned below, this is not triggering copyleft license policy in my scan.

        hasLabel("target-users", "external") && hasLabel( "architecture", "backend")  && hasLabel( "target-platform", "software-application") && hasLabel( "project-distribution-target", "external") -> Policy.REQUIRE_APPROVAL_MAJOR
        hasLabel("target-users", "in-house group") && hasLabel( "architecture", "frontend")  && hasLabel( "target-platform", "software-application") && hasLabel( "project-distribution-target", "external") -> Policy.REQUIRE_APPROVAL_MAJOR

Requesting your support/help to understand where i am doing wrong.

Kindly check and share your feedback on the same.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluatorAbout the evaluator toolneeds infoAn issue where further information is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions