06 May 2024 03:28 PM
Hello colleagues, I'm having a problem deploying my Custom App via GitHub Actions.
The code is stuck in the authentication step, I'm using node.js v20 as indicated. If you can help me, I would really appreciate it!
That's the step.
Solved! Go to Solution.
06 May 2024 03:51 PM
As a first step it would be good to check you have the proper policies & permissions assigned. Please make sure you have the policy AppEngine developer and AppEngine user policy assigned. For more information, please have a look at this blog: https://www.dynatrace.com/news/blog/tailored-access-management-part-2-onboard-users-to-grail-and-app...
It could be that you are missing the permission "app-engine:apps:install"
If this doesn't help your situation, let us know and share more information about the error, so that we can help you further.
Best,
Penny
06 May 2024 04:00 PM
Hello, @PennyScully!
First, thank you for your fast response!
I already have this permission, and I have already performed other Deploys manually via CLI, but I want to automate this using GitHub Actions, with .yml, but the code is waiting for authentication but it should be done through the Browser, and this is my problem, I would like to know how to solve this.
08 May 2024 09:13 AM
I assume you run the npm run deploy within the GitHub action.
To deploy you need to authenticate using an oauth Client and set the DT_APP_OAUTH_CLIENT_ID and DT_APP_OAUTH_CLIENT_SECRET environment variables.
Following are the docs that will help you:
Let me know if it works for you.
Best
Sini
13 Aug 2024 10:07 AM
I have a similar issue:
> dt-app deploy
- Building your app
- Building...
✔ App is built
- Deploying the app
Error: Error while connecting to the app registry
Forbidden
Authentication failed!
Please make sure that:
* The provided client ID and the secret are correct.
* The provided client ID has needed scopes.
Deploy scopes:
* app-engine:apps:run
* app-engine:apps:install
* app-engine:apps:delete
Uninstall scopes:
* app-engine:apps:delete
Telemetry scopes:
* app-engine:apps:run
Development server needs all the scopes specified in the app.config.
For more details on how you can configure authentication, see https://dt-url.net/qw024j8
When testing the oauth api manually:
curl --location --request POST 'https://sso.dynatrace.com/sso/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=xx' \
--data-urlencode 'client_secret=yy'
{"scope":"app-engine:apps:install","token_type":"Bearer","expires_in":300,"access_token":"e
22 Aug 2024 09:27 AM
Hi @DaveOps
Please create a support ticket via https://one.dynatrace.com/hc/en-us/requests . Tech support will help you with this issue.
Best,
Sini