Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to automatically refresh github app auth token in Automation Rule's "Send web request" action?

Edited

I'm building an automation rule in my Jira project. This rule will automatically create a pull request in GitHub every time any Jira issue's status transitions from X to Y. 

 

This rule has a "Send web request" action for this. 

Rules.png

 

Url is a GitHub REST API endpoint url, which requires an auth token. Currently I'm testing this with my own personal account's access token, and it is working fine. But before this goes live in my workplace, I have to replace that token with a GitHub app's token. 

We already do have a GitHub app built and installed in our GitHub org. But as you might know, any GitHub app's installation token expires in one hour max. So, I can't just generate a token now and save that in the rule above. The web-request in the rule will stop working after an hour when that token expires. 

I also searched whether there's any Jira REST API endpoint which I can use to edit automation rules. But apparently Jira doesn't have REST API endpoints for editing automation rules. 

 

So, my question is - is there any way to automatically update the auth token every hour? (I do have the GitHub app's app id, installation id, client id, client secret, private key etc.)

0 answers

Suggest an answer

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

Atlassian Community Events