<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to deploy a Dynatrace Custom App using GitHub Actions? in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244930#M890</link>
    <description>&lt;P&gt;Hello colleagues, I'm having a problem deploying my Custom App via GitHub Actions.&lt;BR /&gt;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!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73fa286a-1614-4b43-9065-9a8379b7a84a.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19685i25F291851BAA0859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73fa286a-1614-4b43-9065-9a8379b7a84a.png" alt="73fa286a-1614-4b43-9065-9a8379b7a84a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's the step.&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 14:28:14 GMT</pubDate>
    <dc:creator>MaximilianoML</dc:creator>
    <dc:date>2024-05-06T14:28:14Z</dc:date>
    <item>
      <title>How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244930#M890</link>
      <description>&lt;P&gt;Hello colleagues, I'm having a problem deploying my Custom App via GitHub Actions.&lt;BR /&gt;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!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73fa286a-1614-4b43-9065-9a8379b7a84a.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19685i25F291851BAA0859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73fa286a-1614-4b43-9065-9a8379b7a84a.png" alt="73fa286a-1614-4b43-9065-9a8379b7a84a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's the step.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:28:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244930#M890</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2024-05-06T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244931#M891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73851"&gt;@MaximilianoML&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a first step it would be good to check you have the proper policies &amp;amp; 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:&amp;nbsp;&lt;A href="https://www.dynatrace.com/news/blog/tailored-access-management-part-2-onboard-users-to-grail-and-appengine/" target="_blank" rel="noopener noreferrer"&gt;https://www.dynatrace.com/news/blog/tailored-access-management-part-2-onboard-users-to-grail-and-app...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It could be that you are missing the permission "app-engine:apps:install"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't help your situation, let us know and share more information about the error, so that we can help you further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Penny&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:51:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244931#M891</guid>
      <dc:creator>PennyScully</dc:creator>
      <dc:date>2024-05-06T14:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244932#M892</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/49766"&gt;@PennyScully&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;First, thank you for your fast response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have this permission, and&amp;nbsp;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.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 15:00:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/244932#M892</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2024-05-06T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/245056#M898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73851"&gt;@MaximilianoML&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you run the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;npm run deploy&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;within the GitHub action.&lt;BR /&gt;&lt;BR /&gt;To deploy you need to authenticate using an oauth Client and set the &lt;STRONG&gt;DT_APP_OAUTH_CLIENT_ID&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DT_APP_OAUTH_CLIENT_SECRET&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;environment variables.&lt;/P&gt;
&lt;P&gt;Following are the docs that will help you:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developer.dynatrace.com/develop/access-platform-apis-from-outside/#create-an-oauth-client" target="_self" rel="noopener noreferrer"&gt;How to create OAuth client&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://developer.dynatrace.com/reference/app-toolkit/configuration/#environment-variables" target="_self" rel="noopener noreferrer"&gt;Dynatrace App Toolkit configuration&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know if it works for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:13:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/245056#M898</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-05-08T08:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/253228#M1055</link>
      <description>&lt;P&gt;I have a similar issue:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;npm run deploy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'Deploy Application'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DT_APP_OAUTH_CLIENT_ID&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(DT_APP_OAUTH_CLIENT_ID)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DT_APP_OAUTH_CLIENT_SECRET&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(DT_APP_OAUTH_CLIENT_SECRET)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;gt; 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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;When testing the oauth api manually:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 09:07:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/253228#M1055</guid>
      <dc:creator>DaveOps</dc:creator>
      <dc:date>2024-08-13T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy a Dynatrace Custom App using GitHub Actions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/253907#M1066</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/78577"&gt;@DaveOps&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please create a support ticket via&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://one.dynatrace.com/hc/en-us/requests" target="_blank" rel="noopener noreferrer"&gt;https://one.dynatrace.com/hc/en-us/requests&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. Tech support will help you with this issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;BR /&gt;Sini&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 08:27:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/How-to-deploy-a-Dynatrace-Custom-App-using-GitHub-Actions/m-p/253907#M1066</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-08-22T08:27:02Z</dc:date>
    </item>
  </channel>
</rss>

