portfolio-app: drop the stale Phase-2 enable_branch_bypass hints and check the plan after gh-plumbing #509/#510

Đang mở Phù hợp với người mới
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, terraform
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Đọc docs/en/portfolio-app.md:59 trước, sau đó đọc ruleset bypass (bypass_portfolio_app = true, actor_type = "Integration") trong terraform/repos để xem các gợi ý nên trỏ tới đâu. Sửa comment trong terraform/portfolio-app/main.tf, phần mô tả enable_branch_bypass trong variables.tf, và dòng được comment trong terraform.example.tfvars; giữ nguyên passthrough của biến. Hoàn thành nghĩa là không có cái nào trong ba cái đề xuất enable_branch_bypass = true, mỗi cái nêu tên ruleset bypass, và một plan từ source scripts/portfolio-app-env.sh && terraform -chdir=terraform/portfolio-app init -upgrade && task tf:plan:portfolio-app được ghi lại chỉ hiển thị cập nhật in-place của PORTFOLIO_APP_PRIVATE_KEY, không replace hay destroy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

docs project-config

terraform/portfolio-app consumes github.com/nolte/gh-plumbing//terraform/portfolio-app?ref=develop. Two module changes landed on gh-plumbing develop on 2026-11-21 and reach this root module at the next terraform init -upgrade. Three local hints also describe a bypass path that no longer works for this setup.

1. Stale "Phase 2" hints

These spots describe flipping enable_branch_bypass = true as the next step:

  • terraform/portfolio-app/main.tf: comment "Flip to Phase 2 once every consumer repo has the App installed …"
  • terraform/portfolio-app/variables.tf: description of enable_branch_bypass ("Phase 2 toggle. Flip to true …")
  • terraform/portfolio-app/terraform.example.tfvars: # enable_branch_bypass = true

That path is not available here:

  • In user mode (user = var.owner), the module refuses enable_branch_bypass = true at plan time since nolte/gh-plumbing#499. GitHub documents push restrictions only for organisation-owned repositories.
  • In organisation mode it additionally needs the new input app_node_id since nolte/gh-plumbing#510.
  • docs/en/portfolio-app.md:59 already says the module's bypass path is unused here, and that the App bypass lives in terraform/repos rulesets (bypass_portfolio_app = true, actor_type = "Integration").

Change: point the three hints at the ruleset bypass in terraform/repos instead of enable_branch_bypass. Keep the variable passthrough as it is.

2. Check the plan after gh-plumbing #509

nolte/gh-plumbing#509 replaced the deprecated plaintext_value with value on the secret resources and raised the module's provider floor to ~> 6.12.

  • The local lockfile already pins provider 6.12.1, so init should resolve without a version change.
  • In user mode only github_actions_secret is affected. The new github_actions_organization_secret_repositories resource is organisation-mode only.
  • Expected, not verified: one in-place update per consumer repository for PORTFOLIO_APP_PRIVATE_KEY, with no replace and no change to the variable.

Check: source scripts/portfolio-app-env.sh && terraform -chdir=terraform/portfolio-app init -upgrade && task tf:plan:portfolio-app. Confirm the plan shows only those in-place secret updates, then apply.

Optional

Since nolte/gh-plumbing#510, app_slug is optional and no longer read by the module. TF_VAR_app_slug in scripts/portfolio-app-env.sh and the app_slug passthrough can stay. They are harmless and could be removed later.

Acceptance

  • None of the three files suggests enable_branch_bypass = true as a next step. Each names the ruleset bypass in terraform/repos.
  • A plan after init -upgrade is recorded in the PR. It shows no replace and no destroy.
Ngôn ngữ chính
HCL
Star
0
Fork
0
Merge trung bình
23 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nolte/terraform-github-bootstrap

Tất cả issue của nolte/terraform-github-bootstrap

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.