Skip to content

Commit dc4d2f5

Browse files
committed
fix: Skip tx-builder dispatch and note token lifetime
1 parent ceb930a commit dc4d2f5

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ jobs:
140140
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_STAGING }}
141141
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
142142

143+
# Minted here because composite-action steps cannot read secrets directly.
144+
# Installation tokens live 60 minutes and the dispatch is the last nx target;
145+
# historical release runs complete in 3-9 minutes, so expiry is not a
146+
# practical concern.
143147
- name: Generate promotions repo token
144148
id: promotions_token
145149
continue-on-error: true

scripts/prepare_production_deployment.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ if [ -n "$GH_TOKEN" ] && [ -n "$PROMOTIONS_REPO" ]
88
then
99
APP_NAME="$(basename $(pwd))"
1010
PACKAGE_VERSION=$(sed -nr 's/^\s*\"version": "([0-9]{1,}\.[0-9]{1,}.*)",$/\1/p' package.json)
11+
# tx-builder promotes via safe-tx-builder-tf (built from safe-wallet-monorepo
12+
# releases) since 2026-03; dispatching it here would only trip the promotion
13+
# workflow's app guard.
14+
if [ "$APP_NAME" = "tx-builder" ]
15+
then
16+
echo "Skipping tx-builder: it deploys via safe-tx-builder-tf"
17+
exit 0
18+
fi
1119
# --ref is required: without it gh resolves the default branch via GraphQL,
1220
# which the app token (actions:write, metadata:read only) is not allowed to do.
1321
# A failed dispatch must not fail this script: it runs mid nx-chain, before

0 commit comments

Comments
 (0)