diff --git a/infra/k8s/argo/ci-pipeline-template.yaml b/infra/k8s/argo/ci-pipeline-template.yaml index bd6291bd7..d13cb4722 100644 --- a/infra/k8s/argo/ci-pipeline-template.yaml +++ b/infra/k8s/argo/ci-pipeline-template.yaml @@ -210,6 +210,9 @@ spec: container: image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest command: ["/bin/sh", "-c"] + env: + - name: COMMITS_JSON + value: "{{workflow.parameters.commits-json}}" resources: requests: cpu: 100m @@ -224,7 +227,7 @@ spec: #!/bin/sh set -e - COMMITS_JSON='{{workflow.parameters.commits-json}}' + # COMMITS_JSON is passed as env var to avoid shell escaping issues # Extract all changed file paths from commits array if command -v jq >/dev/null 2>&1; then