I have configured the allowed subjects in the Infisical dashboard as repo:my-org/my-repo:*.
By convention, this should allow both repo:my-org/my-repo:pull_request and repo:my-org/my-repo:ref:refs/heads/main. However, it only works for the former.
I wasn't able to find any documentation detailing exactly how subject filters are evaluated (just a comment in the dashboard that "This field supports glob patterns").
I've tried a few approaches and all have failed so far...
| subject filter |
PR trigger |
push to main trigger |
repo:my-org/my-repo:pull_request |
✓ |
❌ (403) |
repo:my-org/my-repo:ref:refs/heads/main |
❌ (403) |
✓ |
repo:my-org/my-repo:* |
✓ |
❌ (403) |
repo:my-org/my-repo:** |
✓ |
❌ (403) |
repo:my-org/my-repo:**/* |
❌ (403) |
❌ (403) |
repo:my-org/my-repo:pull_request,repo:my-org/my-repo:ref:refs/heads/main |
❌ (403) |
❌ (403) |
Is there any documentation for the evaluation behavior? Alternatively, is there a solution for this problem or is this considered a bug?
I have configured the allowed subjects in the Infisical dashboard as
repo:my-org/my-repo:*.By convention, this should allow both
repo:my-org/my-repo:pull_requestandrepo:my-org/my-repo:ref:refs/heads/main. However, it only works for the former.I wasn't able to find any documentation detailing exactly how subject filters are evaluated (just a comment in the dashboard that "This field supports glob patterns").
I've tried a few approaches and all have failed so far...
repo:my-org/my-repo:pull_requestrepo:my-org/my-repo:ref:refs/heads/mainrepo:my-org/my-repo:*repo:my-org/my-repo:**repo:my-org/my-repo:**/*repo:my-org/my-repo:pull_request,repo:my-org/my-repo:ref:refs/heads/mainIs there any documentation for the evaluation behavior? Alternatively, is there a solution for this problem or is this considered a bug?