This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
change(jira-auth): change JIRA auth method to use PAT #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for reading a token from the
JIRA_PASS
variable. This is here due to handle migration process from using username+password to PAT.JIRA_PASS
variable starts with thetoken:
prefix, token-based authentication will be used (striptoken:
part first).JIRA_PASS
variable does not start with atoken:
prefix, basic authentication (username + password) will be usedThe example workflows in the README documents retained the current version containing
JIRA_USER
. I recommend to keep it also in the template for new projects. It will be ignored anyway, but since there are already so many projects with it, maybe we can keep it as legacy code.Next steps
JIRA_USER
(will be ignored during token authentication, but must be present because we don't want to change a ton of existing yaml workflows)JIRA_URL
JIRA_PASS
with token value in the formattoken:<token-value>
JIRA_USER
,JIRA_PASS
andJIRA_URL
from all GH repos by scriptFinal state:
JIRA_USER
,JIRA_PASS
andJIRA_URL
secrets, everything will be managed at the org-secrets levelRelated