Put a regular user step first.

This commit is contained in:
Tom Alexander 2025-02-23 13:18:10 -05:00
parent 23916baa61
commit caf789e7af
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -69,6 +69,17 @@ spec:
- name: metadata-out
emptyDir: {}
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
image: $(params.BUILDER_IMAGE)
workingDir: "$(workspaces.source.path)"