cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to deploy a Dynatrace Custom App using GitHub Actions?

MaximilianoML
Participant

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!

73fa286a-1614-4b43-9065-9a8379b7a84a.png

That's the step.

3 REPLIES 3

PennyScully
Dynatrace Guide
Dynatrace Guide

Hi @MaximilianoML 

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

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.

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

Hi @MaximilianoML 

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

Featured Posts