fix
This commit is contained in:
@@ -107,7 +107,7 @@ spec:
|
|||||||
description: |
|
description: |
|
||||||
Absolute path to the user's home directory.
|
Absolute path to the user's home directory.
|
||||||
type: string
|
type: string
|
||||||
default: "/tmp/"
|
default: "/home/git"
|
||||||
results:
|
results:
|
||||||
- name: commit
|
- name: commit
|
||||||
description: The precise commit SHA that was fetched by this Task.
|
description: The precise commit SHA that was fetched by this Task.
|
||||||
@@ -115,6 +115,9 @@ spec:
|
|||||||
description: The precise URL that was fetched by this Task.
|
description: The precise URL that was fetched by this Task.
|
||||||
- name: committer-date
|
- name: committer-date
|
||||||
description: The epoch timestamp of the commit that was fetched by this Task.
|
description: The epoch timestamp of the commit that was fetched by this Task.
|
||||||
|
volumes:
|
||||||
|
- name: home
|
||||||
|
emptyDir: {}
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: clone
|
||||||
image: $(params.toolbox-image)
|
image: $(params.toolbox-image)
|
||||||
@@ -168,6 +171,9 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 65532
|
runAsUser: 65532
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "$(params.userHome)"
|
||||||
|
name: home
|
||||||
script: |
|
script: |
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|||||||
Reference in New Issue
Block a user