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 when adding a label: Resource not accessible by integration #1182

Closed
2 of 5 tasks
grandeljay opened this issue Oct 11, 2024 · 3 comments
Closed
2 of 5 tasks

Error when adding a label: Resource not accessible by integration #1182

grandeljay opened this issue Oct 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@grandeljay
Copy link

Description:
I'm not sure what the bug is, but to put it plainly: the stale label is not added to stale issues.

Issue in question: wishthis/wishthis#180
Workflow file: https://github.com/wishthis/wishthis/actions/runs/11291270290/workflow

[#180] Found this issue last updated at: 2023-11-12T11:45:36Z
[#180] The option only-labels (​[https://github.com/actions/stale#only-labels​)](https://github.com/actions/stale#only-labels%E2%80%8B)) was not specified
[#180] └── Continuing the process for this issue
[#180] Days before issue stale: 180
[#180] The issue is not closed nor locked. Trying to remove the close label...
[#180] ├── The close-issue-label (​[https://github.com/actions/stale#close-issue-label​)](https://github.com/actions/stale#close-issue-label%E2%80%8B)) option was not set
[#180] └── Skipping the removal of the close label
[#180] This issue does not include a stale label
[#180] The option any-of-labels (​[https://github.com/actions/stale#any-of-labels​)](https://github.com/actions/stale#any-of-labels%E2%80%8B)) was specified to only process the issues and pull requests with one of those labels (2)
[#180] ├── One of the required labels is present on this issue
[#180] └── Continuing the process for this issue
[#180] This issue has no milestone
[#180] └── Skip the milestones checks
[#180] The option exempt-all-assignees (​[https://github.com/actions/stale#exempt-all-assignees​)](https://github.com/actions/stale#exempt-all-assignees%E2%80%8B)) is disabled. Only some specific assignees on this issue will skip the stale process
[#180] ├── The option exempt-issue-assignees (​[https://github.com/actions/stale#exempt-issue-assignees​)](https://github.com/actions/stale#exempt-issue-assignees%E2%80%8B)) is disabled. No specific assignee can skip the stale process for this issue
[#180] ├── The option exempt-assignees (​[https://github.com/actions/stale#exempt-assignees​)](https://github.com/actions/stale#exempt-assignees%E2%80%8B)) is disabled. No specific assignee can skip the stale process for this issue
[#180] ├── No assignee option was specified to skip the stale process for this issue
[#180] └── Skip the assignees checks
[#180] This issue is not stale
[#180] The option ignore-updates (​[https://github.com/actions/stale#ignore-updates​)](https://github.com/actions/stale#ignore-updates%E2%80%8B)) is disabled. The stale counter will take into account updates and comments on this issue to avoid to stale when there is some update
[#180] This issue should be stale based on the last update date the 12-11-2023 (2023-11-12T11:45:36Z)
[#180] This issue should be marked as stale based on the option days-before-stale (​[https://github.com/actions/stale#days-before-stale​)](https://github.com/actions/stale#days-before-stale%E2%80%8B)) (180)
[#180] Marking this issue as stale
Error: [#180] Error when adding a label: Resource not accessible by integration
[#180] This issue is now stale
[#180] This issue is already stale
[#180] Checking for label on this issue
[#180] Issue marked stale on: Fri Oct 11 2024 11:09:06 GMT+0000 (Coordinated Universal Time)
[#180] Checking for comments on issue since: Fri Oct 11 2024 11:09:06 GMT+0000 (Coordinated Universal Time)
[#180] Comments that are not the stale comment or another bot: 0
[#180] Issue has been commented on: false
[#180] Days before issue close: 60
[#180] The option remove-stale-when-updated (​[https://github.com/actions/stale#remove-stale-when-updated​)](https://github.com/actions/stale#remove-stale-when-updated%E2%80%8B)) is: true
[#180] The stale label should not be removed
[#180] marked stale this run, so don't check for updates
[#180] Issue has been updated since it was marked stale: false
[#180] Issue has been updated in the last 60 days: true
[#180] Stale issue is not old enough to close yet (hasComments? false, hasUpdate? true)
[#180] 3 operations consumed for this issue

Action version:
9.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Please see description.

Expected behavior:
I expect the "stale" label to be added to the stale issues.

Actual behavior:
The "stale" label is not added to the stale issue. Instead the error: Resource not accessible by integration is thrown. Please help me understand what I am doing wrong.

@grandeljay grandeljay added bug Something isn't working needs triage labels Oct 11, 2024
@HarithaVattikuti
Copy link
Contributor

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

@suyashgaonkar
Copy link

suyashgaonkar commented Nov 5, 2024

Hi @grandeljay , Error when adding a label: Resource not accessible by integration mostly occurs when there no sufficient premissions to execute a github action. To add a stale lable to a issue issues: write permission in the workflow is expeceted, which looks to be missing from the worflow file shared.
You can refer the following link for more details :- Recommended Permissions

@grandeljay
Copy link
Author

Thank you! That solves the issue for me 👐🏼

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