SamuelBagattin/terraform-aws-github-oidc-provider

How to allow tags

Closed this issue · 2 comments

I would like to be able to set, in addition to the allowed_branches, also the tags.

How can I do that?

for example, i want this similar output:

"Condition": {
                "StringLike": {
                    "token.actions.githubusercontent.com:sub": "repo:foo/bar:ref:*"
                }
  }

Thanks for opening this issue.
The module does not currently support this feature.
The subject condition must be refs/tags/xxxx instead of refs/heads/xxx according to the official documentation.
An edit can be made in the locals.tf file and by adding a new variable for the tags list.

@neomusic the tag feature has just beef released in the 0.4.0 version