Merge branch 'nikola-jokic/user-volume-mounts-path' of https://github.com/actions/runner-container-hooks into nikola-jokic/user-volume-mounts-path

This commit is contained in:
Nikola Jokic
2022-06-08 11:02:49 +02:00

View File

@@ -49,7 +49,7 @@ export function containerVolumes(
if (path.isAbsolute(userVolume.sourceVolumePath)) {
if (!userVolume.sourceVolumePath.startsWith(workspacePath)) {
throw new Error(
'absolute path volume mounts outside of the work folder are not supported'
'Volume mounts outside of the work folder are not supported'
)
}
sourceVolumePath = userVolume.sourceVolumePath.slice(workspacePath.length)