Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Login JIRA with SSO, from Github Actions using gajira-login

Muthukumaran Shanmugam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 26, 2022

I have tried logging into JIRA using gajira-login, using below workflow; 

- name: Login
uses: atlassian/gajira-login@master
env:
      JIRA_BASE_URL: https://orgname.atlassian.net
      JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
      JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

It failed logging in, with 'unauthorized' error in the workflow logs.

 

Retried, after updating the base URL as;

- name: Login
uses: atlassian/gajira-login@master
env:
      JIRA_BASE_URL: https://orgname.atlassian.net/browse/projecttitle
      JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
      JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

This time, there are no errors while logged in.

Challenge I experience is comments are not added to Jira ticket after above login i.e. using  JIRA_BASE_URL: https://orgname.atlassian.net/browse/projecttitle 

 

Seems login doesn't work as expected when a JIRA account/credential uses SSO .

Please advice a way to login SSO managed JIRA account, in Github Actions workflow

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events