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

オープン 初心者向け
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, terraform

調査の方向性

まず docs/en/portfolio-app.md:59 を読み、次に terraform/repos の ruleset bypass(bypass_portfolio_app = true、actor_type = "Integration")を読んで、ヒントが何を指すべきかを確認します。terraform/portfolio-app/main.tf のコメント、variables.tf の enable_branch_bypass の説明、terraform.example.tfvars のコメント行を編集します。変数のパススルーはそのままにします。完了とは、3 つのどれも enable_branch_bypass = true を提案しておらず、それぞれが ruleset bypass に言及しており、source scripts/portfolio-app-env.sh && terraform -chdir=terraform/portfolio-app init -upgrade && task tf:plan:portfolio-app からの plan が記録され、PORTFOLIO_APP_PRIVATE_KEY の in-place 更新のみが示され、replace も destroy もないことです。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
HCL
スター
0
フォーク
0
平均マージ
23分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nolte/terraform-github-bootstrap のほかの issue

nolte/terraform-github-bootstrap の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。