You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ISSUE-701 / ISSUE-713: trusted owner lists are matched case-sensitively #623
GitHub owner and repository names are case-insensitive, but trustedOwners (ISSUE-701) and trustedGithubActions (ISSUE-713) are compared case-sensitively. An entry someowner does not cover uses: SomeOwner/some-action@v1, so users have to list every spelling. Same-org and own-repository trust already compare in lower case.
The issue is right. I tested it with real runs: GitHub resolves the owner and repository in uses: without regard to case, for actions and reusable workflows. The ref and the path after the repository are case-sensitive.
For the fix, only the owner/repo part should ignore case. The ref and any path (owner/repo/path, .github/workflows/x.yml) still have to match exactly. Three checks compare case-sensitively today:
_is_trusted_owner in policies/action_unpinned.rego: startswith(uses, "<trusted>/")
_in_allowlist in policies/action_authorized_sources.rego: glob.match(pattern, ["/"], _owner_repo_of(uses))
_is_official in the same file: owner in {"actions", "github"}, so Actions/checkout is reported as unauthorized
All three are allowlists, so the bug only causes false positives. A differently spelled owner never gets through.
Activity
Exypte commentedon Nov 20, 2026
The issue is right. I tested it with real runs: GitHub resolves the owner and repository in
uses:without regard to case, for actions and reusable workflows. The ref and the path after the repository are case-sensitive.Test: test/2026-11-20-uses-case-sensitivity
uses:actions/checkout@<sha>(control)Actions/checkout@<sha>,actions/Checkout@<sha>,ACTIONS/CHECKOUT@<sha>actions/checkout@V4Unable to resolve action `actions/checkout@V4`, unable to find version `V4`GetPlumber-Examples/GitHub-Actions-Miscellaneous-Knowledge/.github/workflows/reusable.yml@<branch>getplumber-examples/github-actions-miscellaneous-knowledge/.github/workflows/Reusable.yml@<branch>failed to fetch workflow: workflow was not found.Runs: actions, reusable, upper-case owner/repo, reusable, upper-case path.
For the fix, only the owner/repo part should ignore case. The ref and any path (
owner/repo/path,.github/workflows/x.yml) still have to match exactly. Three checks compare case-sensitively today:_is_trusted_ownerinpolicies/action_unpinned.rego:startswith(uses, "<trusted>/")_in_allowlistinpolicies/action_authorized_sources.rego:glob.match(pattern, ["/"], _owner_repo_of(uses))_is_officialin the same file:owner in {"actions", "github"}, soActions/checkoutis reported as unauthorizedAll three are allowlists, so the bug only causes false positives. A differently spelled owner never gets through.
Exypte commentedon Nov 20, 2026
I'm working on this one, a fix is on the way.
fix(github): match trusted owner lists without regard to case
fix(github): match trusted owner lists without regard to case
chore(release): 0.7.24 [skip ci]
fix(github): match trusted owner lists without regard to case (getplu…