portfolio-app: drop the stale Phase-2 enable_branch_bypass hints and check the plan after gh-plumbing #509/#510
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ả
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 ofenable_branch_bypass("Phase 2 toggle. Flip totrue…")terraform/portfolio-app/terraform.example.tfvars:# enable_branch_bypass = true
That path is not available here:
- In user mode (
user = var.owner), the module refusesenable_branch_bypass = trueat 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_idsince nolte/gh-plumbing#510. docs/en/portfolio-app.md:59already says the module's bypass path is unused here, and that the App bypass lives interraform/reposrulesets (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
initshould resolve without a version change. - In user mode only
github_actions_secretis affected. The newgithub_actions_organization_secret_repositoriesresource 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 = trueas a next step. Each names the ruleset bypass interraform/repos. - A plan after
init -upgradeis 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nolte/terraform-github-bootstrap
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Tất cả issue của nolte/terraform-github-bootstrap
Issue tương tự
-
platform: ci platform: security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
projectwallace/projectwallace.com#498 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Go Lint fails with "Text file busy" while a golangci-lint step installs the binaryCó thể đã có người làm @denisvmedia đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Nightly image scan is failingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
389ds/389-ds-base#8251 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jonathanong/no-mistakes#5801 ·