Skip to content

Feature: allow setting an array of filters (subjects) #35

@moltar

Description

@moltar

Currently, it is only possible to set one filter per role.

StringLike: {
// Only allow specified subjects to assume this role
[`${GithubActionsIdentityProvider.issuer}:sub`]: subject,
},

However I believe it is possible to support an array of filters, like so:

      "Condition": {
        "ForAnyValue:StringLike": {
          "token.actions.githubusercontent.com:sub": [
            "repo:myorg/myrepo:ref:refs/heads/test-branch-1",
            "repo:myorg/myrepo:ref:refs/heads/test-branch-2"
          ]
        }

(not actually tested, source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions