Custom code not working after private app rotation

Hi,
After having rotated my private app, all my workflows are not able to execute, returning a 401 error “Authentication credentials not found”.
Anyone had the same experience, and have found possible solutions that does not involve going trough all my custom code workflows.

Hey @Mahe,

If you rotate the access token you need to go into each of your worklfows and update the secret there also.

Not ideal I know, but it’s unfortunatley the way it is at the moment…

Jack

And when you say update, how is that? I have tried removing the secret, and adding it again, but the same error happens

You need to navigate to the custom coded action in the workflow. When you click on the action you will have the ability to “manage secrets” as per the screenshot below:

Next, you click on “Edit” as per the below:

Then a pop up will appear that lets you paste in the new access token/secret value:

@coldrickjack thank you very much! Certainly not an ideal solution as we have a lot of workflows using custom code, and this secret.
Do you know if there is a feature request open to change this? Then that deserves an upvote

No problem at all @Mahe, I agree - definitely would be useful to have this. Not sure if there is an existing feature request out there though…