masterpointio/TF Test

Reusable GitHub Action to test Terraform/OpenTofu modules. AWS role ARN can be provided either: 1. As an input parameter (aws_role_arn) - takes precedence 2. As an environment variable (TF_TEST_AWS_ROLE_ARN). The use case for this is setting it in the GitHub organization's environment variable. See the README for more details.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 1, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: masterpointio/github-action-tf-test@c1e41998f67925ac3f34e0bbcfcaa4a44d1f0cd9 # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
tf_typeType of terraform to use (tofu or terraform)yes
aws_role_arnAWS role ARN to assume for testing (takes precedence over TF_TEST_AWS_ROLE_ARN env var)no
aws_regionAWS region to usenous-east-1
github_tokenGitHub token for checkoutyes
role_session_nameAWS role session name for OIDC authenticationnoGitHubActions-TF-Test

no outputs