hjtran opened a new pull request, #41924: URL: https://github.com/apache/beam/pull/41924
## What was happening The stale workflow never reaches older issues (e.g. #18774, idle since 2022). `actions/stale` saves where it stopped in an Actions cache, but the job's token has no `actions` permission (the job-level `permissions:` block replaces the workflow's `read-all`). The action's cache lookup fails, it logs only at debug level, and every run starts over: ``` restore: list "_state" cache → no permission → "The saved state was not found, the process starts from the first issue." process: newest ~550 items, 100 ops → "No more operations left!" around #263xx next day: same thing again ``` ## What changed Grant the stale job `actions: write`, which lets `actions/stale` list, restore and replace its `_state` cache. Each run should then continue where the previous run stopped and eventually reach the older backlog. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
