-
Couldn't load subscription status.
- Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
In #1348, caching was enabled by default if the package.json includes the packageManager field.
This side-effect is dangerous in privileged workflows with access to secrets and credentials, because it makes them vulnerable to cache poisoning. Code injection in one privileged workflow can be exploited to steal higher value secrets, and credentials in another privileged workflow.
Action version:
v5.0.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
npm (but issue is not specific)
Repro steps:
- Create a repo with
package.jsonincl.packageManagerfield. - Create a
pull_request_targetworkflow incl.actions/setup-nodeusage.
Expected behavior:
Caching should not be enabled by default in privileged workflows.
Actual behavior:
Caching is enabled by default.
mk-pmb, notaphplover, jkowalleck, mrgrain and alexaka1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working