Skip to content

PAC requests /ok-to-test even if PLR shouldn't run #1774

Open
@MartinBasti

Description

For PLR with configured CEL expression that shouldn't run for given PR, PAC is requesting approval from maintainers.

Steps to reproduce:

  1. Have a user without permissions to run PLRs (PR must be approved by /ok-to-test)
  2. Have a PLR definition with CEL expressions, that should skip opened PR
  3. User opens PR with changes that doesn't match CEL expressions
  4. PAC reports that PR has to /ok-to-test labeled
  5. Owner adds /ok-to-test
  6. Nothing happens; PAC still shows the same - queued, we cannot get rid of that test status from github

With a user that has permissions, PAC don't report anything.

It seems that RBAC is evaluated before CEL, and asks for permissions even if they aren't needed.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions