Skip to content

CI: eliminate actions/checkout default-branch init warning without suppressing stderr #277

Description

@seonghobae

Current state — 2026-09-15

The warning is now owned by the canonical LifeOS action-runtime branch rather than #275. Protected main@193a87ef54c3fe6dcda4755bce4d6bc81e3a0297 remains unchanged, so the repair is still unshipped.

Draft PR #276 exact bcea58b3eacc612578c59850e7d7f1cac2aa4151, open/mergeable, carries the root repair for the persistent LifeOS checkout boundary. Every retained checkout initialization explicitly supplies:

  • GIT_CONFIG_COUNT=1
  • GIT_CONFIG_KEY_0=init.defaultBranch
  • GIT_CONFIG_VALUE_0=main

This config reaches the git init subprocess itself. It does not hide output with stderr redirection, || true, generic filtering, or advice.defaultBranchName=false; exact-SHA checkout, persist-credentials: false, permissions and existing gates remain intact.

RED → repair evidence

The original exact reproduction remains #275 verifier run 34631647126 / job 103369640323 at b655e343b1b7d60441b4e0ec1a2963b0f6c56a55, using actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1. Git initialized the temporary repository with implicit master and emitted the Git-3.0 default-branch warning while the actual PostgreSQL contract passed.

Hosted Ubuntu 24.04 / Git 2.55 probes on #276 established that the three GIT_CONFIG_* variables cause checkout's internal git init to create main directly without that warning. The #276 permanent contract has since been hardened against env/scalar/sibling-mapping/action-identity/YAML-structure bypasses, so merely placing similar text elsewhere in a workflow cannot satisfy the executable policy.

Current exact #276 has AppGuardrail GREEN. Commercial Readiness run 34792004500 crossed the repaired checkout/setup path successfully before failing later at the separate canonical #247 bounded-GitHub-evidence boundary. CI, SAST, Security and CodeQL evidence still need to terminate on the final owner head; repository-wide GREEN is therefore not claimed.

Acceptance

  • Identify the durable owner as LifeOS's persistent checkout bootstrap and repair it on canonical fix(ci): adopt Node 24 GitHub Action runtimes #276.
  • Configure init.defaultBranch=main before the affected git init without warning suppression.
  • Preserve exact contributor SHA checkout, credential persistence policy and security gates.
  • Retain an executable workflow contract resistant to misleading sibling/scalar/YAML placements.
  • Obtain terminal applicable current-head checks and independent review on the final fix(ci): adopt Node 24 GitHub Action runtimes #276/restacked descendant.
  • Integrate fix(ci): adopt Node 24 GitHub Action runtimes #276 normally into protected main and verify a fresh protected-descendant hosted run remains free of the original warning.

This issue is separate from #275's PostgreSQL init warning repair. Do not close it merely because the Draft owner branch has a verified source fix; protected integration or a verified successor is still required.

Refs #270 #275 #276 #279; ContextualWisdomLab/.github#2106.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions