Put a regular user step first.
This commit is contained in:
parent
23916baa61
commit
caf789e7af
@ -69,6 +69,17 @@ spec:
|
|||||||
- name: metadata-out
|
- name: metadata-out
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
steps:
|
steps:
|
||||||
|
- name: run-as-user
|
||||||
|
image: $(params.BUILDER_IMAGE)
|
||||||
|
workingDir: "$(workspaces.source.path)"
|
||||||
|
script: |
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
set -euo pipefail
|
||||||
|
echo "yo"
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
- name: setup-cache-ownership
|
- name: setup-cache-ownership
|
||||||
image: $(params.BUILDER_IMAGE)
|
image: $(params.BUILDER_IMAGE)
|
||||||
workingDir: "$(workspaces.source.path)"
|
workingDir: "$(workspaces.source.path)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user