Skip to content

ISSUE-701 / ISSUE-713: trusted owner lists are matched case-sensitively #623

Description

@Totara-thib

Describe the bug

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.

To Reproduce

# .plumber.yaml
github:
  controls:
    actionsMustBePinnedByCommitSha:
      enabled: true
      trustedOwners: [actions, github, someowner]
    githubActionMustComeFromAuthorizedSources:
      enabled: true
      trustedGithubActions: ["someowner/*"]
steps:
  - uses: SomeOwner/some-action@v1    # ISSUE-701 and ISSUE-713
  - uses: someowner/other-action@v1   # no finding

Expected behavior

Both lists match owner and repository names case-insensitively.

Relevant versions and configuration files

  • Plumber version: v0.7.23
  • Platform: GitHub

Additional context

The shared trusted list planned in #378 should fold case the same way.

Activity

  1. added theissue type on Nov 19, 2026
  2. Exypte commented on Nov 20, 2026

    @Exypte
    Contributor

    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: Result
    actions/checkout@<sha> (control) ✅
    Actions/checkout@<sha>, actions/Checkout@<sha>, ACTIONS/CHECKOUT@<sha> ✅ same commit downloaded
    actions/checkout@V4 ❌ Unable to resolve action `actions/checkout@V4`, unable to find version `V4`
    GetPlumber-Examples/GitHub-Actions-Miscellaneous-Knowledge/.github/workflows/reusable.yml@<branch> ✅ GitHub logs it under the lower-case name
    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_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.

  3. self-assigned this
    on Nov 20, 2026
  4. Exypte commented on Nov 20, 2026

    @Exypte
    Contributor

    I'm working on this one, a fix is on the way.

  5. added a commit that references this issue on Nov 20, 2026
    eae294a
  6. added a commit that references this issue on Nov 26, 2026
    36ceb9e
  7. added a commit that references this issue on Nov 30, 2026
    4160592
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions