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

Error running workflow: "Input required and not supplied: repo-token" #74

Closed
coliff opened this issue Jun 19, 2023 · 2 comments
Closed

Comments

@coliff
Copy link

coliff commented Jun 19, 2023

I'm running this GH Action workflow on a public repo and it is failing with Failure "Error: Input required and not supplied: repo-token". My workflow is:

name: 'Issue Labeler'
on:
  issues:
    types: [opened, edited]

permissions:
  issues: write
  contents: read

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: github/issue-labeler@v3.1
        with:
          configuration-path: .github/issue-labeler.yml
          enable-versioned-regex: 0

Any suggestions on how to resolve?

@coliff
Copy link
Author

coliff commented Jun 19, 2023

Update, I fixed this by adding repo-token: "${{ secrets.GITHUB_TOKEN }}" to the config as follows:

name: 'Issue Labeler'
on:
  issues:
    types: [opened, edited]

permissions:
  issues: write
  contents: read

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: github/issue-labeler@v3.1
        with:
          configuration-path: .github/issue-labeler.yml
          enable-versioned-regex: 0
          repo-token: "${{ secrets.GITHUB_TOKEN }}"

Shouldn't this be included in the README example?

@stephanmiehe
Copy link
Collaborator

Fixed in #75

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

2 participants