You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently cache state directory is being hardcoded to the same 56acbeaa-1fef-4c79-8f84-7565e560fb03 value.
This causes permission issues in the following situation:
One virtual machine has multiple GitHub runners
Every runner is running under different user context
Stale action is executed on multiple runners against multiple repositories
This causes state.txt to be owned by the user context of the first runner which executes the Github action preventing others runners to be able to use the state cache functionality.
One potential solution is to the STALE_DIR folder name to be a hash of the repository name. This will ensure that every repository will get its own state.
Example error
Error: Error: EACCES: permission denied, open '/tmp/56acbeaa-1fef-4c79-8f84-7565e560fb03/state.txt'
Error: EACCES: permission denied, open '/tmp/56acbeaa-1fef-4c79-8f84-7565e560fb03/state.txt'
Description:
Currently cache state directory is being hardcoded to the same
56acbeaa-1fef-4c79-8f84-7565e560fb03
value.This causes permission issues in the following situation:
This causes state.txt to be owned by the user context of the first runner which executes the Github action preventing others runners to be able to use the state cache functionality.
One potential solution is to the STALE_DIR folder name to be a hash of the repository name. This will ensure that every repository will get its own state.
stale/src/classes/state/state-cache-storage.ts
Line 12 in f04443d
Action version:
Platform:
Runner type:
Repro steps:
See description.
Expected behavior:
See description.
Actual behavior:
See description.
The text was updated successfully, but these errors were encountered: