feat(scaffold): add terraform_extra_secrets input to reusable workflow#103
Merged
feat(scaffold): add terraform_extra_secrets input to reusable workflow#103
Conversation
Adds an optional `terraform_extra_secrets` secret input to the reusable Terraform plan/apply workflow template. Callers pass KEY=VALUE lines (typically `TF_VAR_*` referencing caller secrets), which are appended to $GITHUB_ENV in both the plan and apply jobs so Terraform picks them up as env vars. Values matching registered secrets remain masked in logs.
ishuar
pushed a commit
that referenced
this pull request
May 6, 2026
🤖 I have created a release *beep* *boop* --- ## [0.8.4](v0.8.3...v0.8.4) (2026-05-06) ### ✨ Features * **scaffold:** add terraform_extra_secrets input to reusable workflow ([#103](#103)) ([1cfcd13](1cfcd13)) ### 📦 Other Changes * extract version line via grep in install success message ([#101](#101)) ([7465753](7465753)) * **scaffold:** install tfskel via install.sh in reusable workflow ([#104](#104)) ([3c19128](3c19128)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Adds an optional
terraform_extra_secretssecret to the reusable Terraform plan/apply workflow template so callers can expose arbitrary secrets to Terraform without changing the template each time.KEY=VALUEper line (typicallyTF_VAR_*referencing caller secrets).Set extra secrets as env varsstep appends those lines to$GITHUB_ENVin both the plan and apply jobs, so Terraform picks them up as env vars.Fixes #
Notes for reviewers
internal/templates/files/github/is changed; behavior for callers that don't setterraform_extra_secretsis identical to before.