diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index 8cedef77..3d9d05d9 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -56,6 +56,8 @@ jobs: echo "JIRA_ISSUE_KEY=$JIRA_ISSUE_KEY" >> $GITHUB_ENV - name: Create branch for the issue + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | export LANG=en_US.UTF-8 ISSUE_NUMBER=${{ github.event.issue.number }} @@ -64,7 +66,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git checkout -b "$BRANCH_NAME" - git push origin "$BRANCH_NAME" + git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}" "$BRANCH_NAME" update_jira: if: github.event_name == 'push'