actions / stale

Marks issues and pull requests that have not had recent interaction
MIT License
1.34k stars 353 forks source link

Action is not working and is always erroring out #1154

Open faustroxas opened 4 months ago

faustroxas commented 4 months ago

Description: Tried using the action and only got this error everytime. Created the a token with the right permissions as well image

Here is the code:

  close-issues:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
      - uses: actions/stale@v7
        with:
          stale-issue-label: "Stale"
          stale-pr-label: "Stale"
          days-before-stale: 60
          days-before-close: 7
          stale-issue-message: "This issue is stale because it has been open for 60 days with no activity."
          stale-pr-message: "This PR is stale because it has been open for 60 days with no activity."
          close-issue-message: "This issue was closed because it has been stale for 7 days since being marked as stale."
          close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."
          repo-token: ${{ secrets.PR_ACCESS_TOKEN }}

Action version: @v9

Platform:

Runner type:

Repro steps:
Copy the action step.

Expected behavior: Closed old PRs and Issues

Actual behavior: Error: Not Found

HarithaVattikuti commented 4 months ago

Hello @faustroxas Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

marlun78 commented 3 weeks ago

I have the same issue, @faustroxas did you manage to solve it?

faustroxas commented 3 weeks ago

I have the same issue, @faustroxas did you manage to solve it?

Yeah. I used the github default token instead of ours. Seems like there are missing perms that are not stated