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

HttpError: Resource not accessible by integration #68

Closed
amerikan opened this issue May 23, 2023 · 2 comments
Closed

HttpError: Resource not accessible by integration #68

amerikan opened this issue May 23, 2023 · 2 comments

Comments

@amerikan
Copy link
Contributor

I keep getting HttpError: Resource not accessible by integration when it runs. My config is:

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

permissions:
  issues: write

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: github/issue-labeler@v3.1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          configuration-path: .github/labeler-issue-regex.yml
          enable-versioned-regex: 0
          sync-labels: 1
          include-title: 1
@amerikan
Copy link
Contributor Author

It works now that I have modified:

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:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          configuration-path: .github/labeler-issue-regex.yml
          enable-versioned-regex: 0
          sync-labels: 1
          include-title: 1

@stephanmiehe
Copy link
Collaborator

Thank you. I've tweaked the docs to include this

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