fix: bug: setup_forge's admin_token is a local variable, not exported — setup_ops_repo falls back to dev-bot token and fails with 403 (#583)
This commit is contained in:
parent
6305597156
commit
e58caa5dfd
3 changed files with 35 additions and 36 deletions
|
|
@ -685,7 +685,7 @@ p.write_text(text)
|
|||
# the calling user (e.g. johba) but the ops repo belongs to disinto-admin.
|
||||
local ops_slug="disinto-admin/${project_name}-ops"
|
||||
local ops_root="/home/${USER}/${project_name}-ops"
|
||||
setup_ops_repo "$forge_url" "$ops_slug" "$ops_root" "$branch"
|
||||
setup_ops_repo "$forge_url" "$ops_slug" "$ops_root" "$branch" "${HUMAN_TOKEN:-}"
|
||||
|
||||
# Migrate ops repo to canonical structure (seed missing directories/files)
|
||||
# This brings pre-#407 deployments up to date with the canonical structure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue