Skip to content

Replace config.json circleci.orgId with CIRCLECI_ORG_ID env var#201

Merged
danmux merged 2 commits intomainfrom
org-id-to-env-var
Apr 15, 2026
Merged

Replace config.json circleci.orgId with CIRCLECI_ORG_ID env var#201
danmux merged 2 commits intomainfrom
org-id-to-env-var

Conversation

@schurchleycci
Copy link
Copy Markdown
Contributor

Summary

  • Org ID is a user/machine-level credential (like CIRCLE_TOKEN) and shouldn't be stored in per-repo .chunk/config.json
  • chunk init now prints export CIRCLECI_ORG_ID=<uuid> instructions instead of writing to config
  • resolveOrgID() falls back to CIRCLECI_ORG_ID env var instead of config.json
  • Org mismatch warning in chunk task config reads from CIRCLECI_ORG_ID instead of config
  • Removed CircleCIConfig struct and CircleCI field from ProjectConfig

Test plan

  • task build compiles cleanly
  • task test all tests pass
  • task lint no lint errors
  • chunk init in a test repo shows export CIRCLECI_ORG_ID=... output
  • chunk sandbox list without --org-id reads from CIRCLECI_ORG_ID env var

🤖 Generated with Claude Code

Org ID is a user/machine-level credential like CIRCLE_TOKEN and should
not be stored in per-repo config. chunk init now prints export
instructions instead of writing to config.json, and resolveOrgID falls
back to CIRCLECI_ORG_ID instead of config.json.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danmux danmux merged commit 87c09bf into main Apr 15, 2026
6 checks passed
@danmux danmux deleted the org-id-to-env-var branch April 15, 2026 15:48
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.

2 participants