Repository navigation
fix(aio-app-deployment): tolerate post-app-deploy upgrade check 403 not-owner - #212
Closed
harshaaligent wants to merge 1 commit into
Closed
harshaaligent wants to merge 1 commit into
harshaaligent wants to merge 1 commit into
Conversation
…ot-owner aio-commerce-lib-app's post-app-deploy hook calls the App Management Service with a user IMS token. CI uses Server-to-Server credentials, so the service returns 403 not-owner after the actions have already deployed, failing the job. Tolerate exactly that failure (every hook failure is a not-owner 403 on /workspaces/<id>/extensions and actions were deployed) and emit a warning. Any other failure still fails with the original exit code. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
|
Closing: opened prematurely; change withdrawn. |
harshaaligent
deleted the
fix/aio-deploy-tolerate-upgrade-check-not-owner
branch
November 20, 2026 00:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Deploys of apps using
@adobe/aio-commerce-lib-appfail in CI after the actions have deployed successfully (seen in PolyaireDev/polyaire-appbuilder-apps run 44641431763: order-, account-, catalog- and store-location-management).The extension's
post-app-deployhook callsGET /v1/workspaces/<id>/extensionson the App Management Service using the current IMS user token. This workflow authenticates with OAuth Server-to-Server (oauth_sts), so the service repliesHTTP 403, code not-owner("Only a user can access workspace resources"). The hook exits 1 and this step fails (pipefailplus theCommand failed with exit codegrep).Change
The Deploy step now captures
aio app deploy's exit code and passes with a::warningonly when all hold:Command failed with exit code N:line is matched by aHTTP 403, code not-owner, GET /v1/workspaces/<id>/extensionsline, and there is at least oneDeployed N action(s)Anything else (build errors, other hook failures, failed deploys) still fails with the original exit code and the existing
::errorannotation.Caveats
upgradeMode: autoupgrades are not applied automatically; the warning annotation keeps this visible.Testing
Not yet run. Suggest re-running the failed Staging Deployment jobs in polyaire-appbuilder-apps against this branch.
🤖 Generated with Claude Code