Hi All,
We have a scenario where we have to trigger GitHUb Action from Jira Automation workflow and we are able to successfully trigger with GitHub Personal Access Token ( PAT).
But we do not want to use PAT and want to trigger GitHub action either with GitHub App id or GitHub Oauth from Jira Server .
Any idea how can we do this ?
+1 having same requirement, struggling from few weeks for getting it done.
@baban kumar did you get anything?
@ssamuels FYI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Srikanth Bheemunipallywar Thanks for sharing it, all the steps described already achieved, as asked in the question we don't want to use PAT while sending request from JIRA. Looking for option how to extract github app token within JIRA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
As my best knowledge , i think there are 2 solutions to do this :-
Solution 1:-
Install the App "Jira Integration for GitHub from GitHub Marketplace
Jira Integration for Github · GitHub Marketplace
Solution 2:
Check in Jira with Admin access if you have ScriptRunner tool present .
Introduction to ScriptRunner (adaptavist.com)
ScriptRunner supports Groovy language . So, in Groovy you have to write a code with below functions:-
Function to generate JWT token with input as GitHub App ID and private key file. Then with this JWT and GitHub App install ID , generate a random Auth token which will be used as AUthorization Bearer "$githubrandomtoken to trigger GitHub action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.