Skip to content

Error: Getting issues was blocked by the error: Resource not accessible by integration #1307

@wongk

Description

@wongk

Description:
We have issues disabled for our repository. When running the stale action, we get the error mentioned in the title.

Action version:
10

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

name: "Close stale PRs"

on:
    schedule:
        - cron: "0 6 * * *" # Runs daily at 6:00 AM UTC
    workflow_dispatch:

jobs:
    stale:
        runs-on: ubuntu-latest
        permissions:
            pull-requests: write
        steps:
            - uses: actions/stale@v10
              with:
                  days-before-pr-stale: 7 # Number of days of inactivity before marking as stale
                  stale-pr-message: "This Pull Request is stale because it has been open 7 days with no activity."
                  days-before-pr-close: 7 # Number of days after marking as stale before closing
                  close-pr-message: "Closing this Pull Request due to inactivity."
                  days-before-issue-stale: -1 # Disables marking issues as stale
                  days-before-issue-close: -1 # Disables closing stale issues

Expected behavior:
No error

Actual behavior:
See above

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions