Skip to content

MY_GITHUB_TOKEN not defined #80

Open
@TheFlyer1983

Description

Hi,

I am trying to create an issue in a personal repo, but the add it to a user project board (https://github.com/users/TheFlyer1983/projects/5) for example. I keep getting an error in my action saying:
MY_GITHUB_TOKEN not defined.

I have created a PAT named MY_GITHUB_TOKEN but whenever I run it I get the error, and my job fails.

My workflow is detailed below.

name: Add Issues
on: 
  issues:
    types:
      - opened
env:
  MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
  
jobs:
  add_issues:
    runs-on: ubuntu-latest
    steps:
      - name: Assign to One Project
        uses: srggrs/[email protected]
        if: github.event.action == 'opened'
        with:
          project: https://github.com/users/TheFlyer1983/projects/1
          column_name: 'Backlog'

I was wondering if you could help resolve my issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions