stale: Error delete _state: [403] Resource not accessible by integration

Description: If a job has multiple actions/stale steps the creation of the cache fails.

Action version: 9

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
https://github.com/microsoft/vcpkg/blob/master/.github/workflows/stale.yml

Expected behavior: No errors.

Actual behavior: Errors. See https://github.com/microsoft/vcpkg/actions/runs/7750221792

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Giving actions: write means the workflow has all these permissions and this is way too much, and not acceptable for a lot of projects. https://github.com/actions/cache does not require these permissions, and still manages to save a cache across builds. Could the stale action be refactored to use the same trick as the cache action ? Or could it use the cache action under the hood ?

Granting actions:write to the stale workflow will allow it to manage issues cache as intended.

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