Skip to content

chore: stop passing protected owners and drift reviewers to the reusable workflows - #306

Merged
dev-milos merged 1 commit into
mainfrom
chore/env-scoped-deployment-vars
Aug 27, 2026
Merged

chore: stop passing protected owners and drift reviewers to the reusable workflows#306
dev-milos merged 1 commit into
mainfrom
chore/env-scoped-deployment-vars

Conversation

@dev-milos

Copy link
Copy Markdown
Contributor

PROTECTED_OWNERS and DRIFT_REVIEWERS now come from the deployment environment the reusable workflows already run in — plan and schedule respectively. Both environment variables are already set on this repository.

The workflow_call inputs were removed in G-Research/github-terraformer#78, so a caller that keeps passing them fails with Invalid input as soon as test/rc-cycle picks up that change.

Order matters. Dropping the inputs first is the safe direction: they were optional (default: ""), so the revision currently referenced simply reads an empty value. Moving test/rc-cycle first would break tf-plan and drift-check outright.

test/rc-cycle is fast-forwarded onto the merged change immediately after this merges, which closes the short window where the protected-owner rule is not enforced.

Repository-level PROTECTED_OWNERS / DRIFT_REVIEWERS are deleted afterwards — environment variables take precedence over repository variables of the same name, so removing them is what proves the value now comes from the environment.

…ble workflows

Both values now come from the deployment environment the reusable
workflows already run in -- PROTECTED_OWNERS from plan, DRIFT_REVIEWERS
from schedule, both already set. The workflow_call inputs were removed
upstream, so a caller that keeps passing them fails with Invalid input
once test/rc-cycle picks up the change.

Dropping them first is the safe order: the inputs were optional, so the
currently referenced revision simply reads an empty value until the
branch moves.
@dev-milos
dev-milos merged commit 1b675c8 into main Aug 27, 2026
1 check passed
@dev-milos
dev-milos deleted the chore/env-scoped-deployment-vars branch August 27, 2026 11:49
@gcs-bypasser-grossdevelopers

Copy link
Copy Markdown

Terraform Plan Result

Terraform plan: 0 to import, 0 to add, 0 to change, 0 to destroy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant