I have a secure variable in the bitbucket repository. There is a life time associated with that token and I have to refresh it by doing a rest call. As we are managing that secured variable in bitbucket, I thought doing the rest call in the bitbucket-pipelines.yml with curl and can update the variable on every deployment.
Is the update of variable allowed in bitbucket via the bitbucket-pipelines.yml file?
I understand this is not a perfect solution, however we need it as a workaround now.