Enable passing the access_token_scopes
configuration to google-github-actions/auth
on tfaction-root
#1325
-
Feature OverviewWe would like to enable passing the
Why is the feature needed?In our terraform environment using tfaction, we manage not only GCP but also Google Workspace through terraform. To operate elements such as Google Workspace's groups, it's necessary to add various scopes beyond the default For instance, in the actual environment we use, we pass the following as
Currently, instead of using We want to make this configurable in tfaction-root to simplify the tfaction workflow. Does the feature include Breaking Changes?No. I believe that this change will likely not be a breaking change. Example CodeGitHub Actions
tfaction-root.yaml - working_directory: google_workspace/
target: google_workspace/
terraform_plan_config:
gcp_service_account: [email protected]
gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction
gcp_access_token_scopes: 'https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/apps.groups.settings, https://www.googleapis.com/auth/admin.directory.group' tfaction.yaml {} # or can override configuration of `gcp_access_token_scopes` in here Reference |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
To pass Consequently, the ideal configuration for tfaction-root would be as follows:
|
Beta Was this translation helpful? Give feedback.
-
(If this change seems likely to be accepted, of course, I can write the code and submit a PR as well.) |
Beta Was this translation helpful? Give feedback.
-
I'm working on this. |
Beta Was this translation helpful? Give feedback.
Thank you for testing!
v1.4.0 is out!
https://github.com/suzuki-shunsuke/tfaction/releases/tag/v1.4.0
The feature has been supported by #1611