actions / actions/toolkit

cache: add sudo as an option

Open
#946 6 comments 36 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement
Many people would like to cache some "system" directory but are not able to since it is the runner user who make the tar.
Adding a sudo option who could be used later by actions/cache will solve the problem

Code Snippet
There are many demands about it :
https://github.com/actions/cache/pull/181#issuecomment-629455420
https://github.com/actions/cache/issues/133#issuecomment-869781210
https://github.com/actions/cache/issues/155
https://github.com/actions/cache/issues/324#issuecomment-773406088
https://github.com/actions/cache/issues/629

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the cache archive creation path in this TypeScript toolkit and review the linked actions/cache discussions for the expected sudo behavior. Determine the affected entry points and tests before changing the option; done means system directories can be archived with sudo without breaking existing cache behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.