fix: fix: env.sh save/restore should only protect FORGE_URL, not FORGE_TOKEN (#364) #365
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-364"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #364
Changes
AI Review
Summary\n\nThis fix removes the save/restore of
FORGE_TOKENaround.env/.env.encsourcing, while keepingFORGE_URLpreserved.\n\n### Analysis\n\n- FORGE_URL preservation is correct: compose injectshttp://forgejo:3000(internal Docker hostname) while.envhashttp://localhost:3000. Without preservation, the internal hostname would be clobbered.\n- FORGE_TOKEN no longer preserved: Withset -a+source, variables not defined in.envretain their existing values. Variables defined in.envnow flow through without being overwritten by the stale compose value — enabling token rotation to take effect immediately in running containers.\n- Line 77 (export FORGE_TOKEN="${FORGE_TOKEN:-}") still exports the token post-sourcing regardless of origin — no regression.\n- Updated comment accurately reflects both behaviors.\n\nNo bugs, no security issues, no dead code introduced.Verdict
APPROVE — Correctly removes FORGE_TOKEN save/restore so token rotation takes effect immediately; FORGE_URL preservation is still needed for Docker networking.
Reviewed at
c35d57a| AGENTS.mdAI Review: APPROVE — Correctly removes FORGE_TOKEN save/restore so token rotation takes effect immediately; FORGE_URL preservation is still needed for Docker networking.