This commit is contained in:
2024-04-23 13:41:46 +02:00
parent 52a8a72ab2
commit 7c4220907d

View File

@@ -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