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

Action is not working and is always erroring out #1154

Open
2 tasks done
faustroxas opened this issue Apr 16, 2024 · 3 comments
Open
2 tasks done

Action is not working and is always erroring out #1154

faustroxas opened this issue Apr 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@faustroxas
Copy link

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:

  • macOS

Runner type:

  • Hosted

Repro steps:
Copy the action step.

Expected behavior:
Closed old PRs and Issues

Actual behavior:
Error: Not Found

@faustroxas faustroxas added bug Something isn't working needs triage labels Apr 16, 2024
@HarithaVattikuti
Copy link
Contributor

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
Copy link

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

@faustroxas
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants