Skip to content

fix(cache): Add write permissions to clear cache workflow #37953

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdrienPoupa
Copy link

Why:

The gh cache list call needs the write actions permission, otherwise it fails with Error: Resource not accessible by integration..

It was reported here: actions/gh-actions-cache#85

What's being changed (if available, include any code snippets, screenshots, or gifs):

Added the write actions permission to the cleanup cache workflow.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 15:27
Copy link

welcome bot commented Apr 30, 2025

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the required write permissions to the cache cleanup workflow to resolve the "Resource not accessible by integration" error when running the gh cache list command.

  • Updated the cleanup job in the caching dependencies workflow file to include the "actions: write" permission.
  • Enhances workflow stability by ensuring necessary permissions are set.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Apr 30, 2025
Copy link
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

⚠️ Warning: Our review server is experiencing latency issues.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on the review server. Changes to the data directory are not included in this table.

Source Review Production What Changed
actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows.md fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12
fpt
ghec
ghes@ 3.16 3.15 3.14 3.13 3.12

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@Sharra-writes
Copy link
Contributor

Thanks for opening a PR! I'll get this triaged for review.

@Sharra-writes Sharra-writes added content This issue or pull request belongs to the Docs Content team needs SME This proposal needs review from a subject matter expert github_actions Pull requests that update GitHub Actions code and removed triage Do not begin working on this issue until triaged by the team labels Apr 30, 2025
Copy link
Contributor

Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team github_actions Pull requests that update GitHub Actions code needs SME This proposal needs review from a subject matter expert
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants