File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 15
15
JIRA_COMPONENT : ${{ secrets.JIRA_COMPONENT }}
16
16
JIRA_PROJECT_KEY : ${{ secrets.JIRA_PROJECT_KEY }}
17
17
JIRA_EPIC_KEY : ${{ secrets.JIRA_EPIC_KEY }}
18
+ JIRA_AUTHORIZATION : ${{ secrets.JIRA_AUTHORIZATION }}
Original file line number Diff line number Diff line change 21
21
JIRA_PROJECT_KEY : ${{ secrets.JIRA_PROJECT_KEY }}
22
22
JIRA_EPIC_KEY : ${{ secrets.JIRA_EPIC_KEY }}
23
23
` ` `
24
+ Alternatively, one can provide the ` JIRA_AUTHORIZATION` variable instead of `JIRA_USERNAME` and `JIRA_API_TOKEN`.
25
+
24
26
25
27
# # Debug
26
28
Original file line number Diff line number Diff line change @@ -126,10 +126,16 @@ runs:
126
126
env :
127
127
JIRA_USERNAME : ' ${{ inputs.JIRA_USERNAME }}'
128
128
JIRA_API_TOKEN : ' ${{ inputs.JIRA_API_TOKEN }}'
129
+ JIRA_AUTHORIZATION : ' ${{ inputs.JIRA_AUTHORIZATION }}'
129
130
run : |
130
131
set -eu
131
-
132
- jira_auth=$(echo -n "${JIRA_USERNAME}:${JIRA_API_TOKEN}" | base64 | tr -d '\n')
132
+
133
+ if [ -z "$JIRA_AUTHORIZATION" ]; then
134
+ jira_auth=$(echo -n "${JIRA_USERNAME}:${JIRA_API_TOKEN}" | base64 | tr -d '\n')
135
+ else
136
+ jira_auth="${JIRA_AUTHORIZATION}"
137
+ fi
138
+
133
139
jira_auth_header="Authorization: Basic $jira_auth"
134
140
135
141
echo "Creating issue ${{ github.event.issue.title }} and linking it as a dependency to ${{ inputs.DEPENDENT_ISSUE }}"
You can’t perform that action at this time.
0 commit comments