Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Action is logging in as undefined #12

Open
anarian opened this issue Aug 24, 2021 · 4 comments
Open

Login Action is logging in as undefined #12

anarian opened this issue Aug 24, 2021 · 4 comments

Comments

@anarian
Copy link

anarian commented Aug 24, 2021

I'm trying to set up actions to transition tickets when pull requests are opened/closed, but using the atlassian/gajira-login action is logging me in as undefined, causing the other actions to fail.

image

This is my current actions definition:

name: Transition ticket for PRs

on: pull_request

jobs:
  build:
    runs-on: ubuntu-latest
    name: Jira Ticket Transition
    steps:
    - name: Checkout repository
      uses: actions/checkout@v2
      
    - name: Login
      uses: atlassian/[email protected]
      env:
        JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
        JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
        JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

    - name: Find ticket IDs in commit messages
      uses: atlassian/[email protected]
      id: ticketids
      with:
        from: commits
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    - name: Transition to "In Code Review"
      id: transition-incodereview
      if: ${{ github.event.pull_request.action == 'opened' }}
      uses: atlassian/[email protected]
      with:
        issue: ${{ steps.ticketids.outputs.issue }}
        transition: "In Code Review"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    - name: Transition to "Ready to Deploy"
      id: transition-readytodeploy
      if: ${{ github.event.pull_request.action == 'closed' && github.event.pull_request.merged == true }}
      uses: atlassian/[email protected]
      with:
        issue: ${{ steps.ticketids.outputs.issue }}
        transition: "Ready to Deploy"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Update: Also added a actions/checkout@v2 run before this, since it wouldn't have been able to get the git history to find the ticket IDs, but the authentication is still returning undefined and the error in gajira-find-issue-key is still the same.

@dadamsGS
Copy link

I am getting the same error. Any movement on this?

@fahedyasin
Copy link

I am getting the same. any updates?

@GeDiez
Copy link

GeDiez commented Aug 30, 2022

same here, any solution around this?

@dja557
Copy link

dja557 commented Oct 19, 2022

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants