diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 92b668c01740c3069d0fd8be54f8464609ad46f0..a6e3102212a11c52555979b414a49583269397af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ check-pipeline-status: when: always script: - | - if ! python3 .gitlab-ci/getpipelineinfo.py --access-token $CI_JOB_TOKEN \ + if ! python3 .gitlab-ci/getpipelineinfo.py --access-token $CI_JOB_API_READ_TOKEN \ --look-for HEAD \ --print-format pipeline-id; then echo "No successful pipeline found. Triggering new pipeline..." diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml index 9d3183db81e3984fcf434a929f68fb3077a99024..10b252cd1f76133a3b2df99d62c17882f99708cf 100644 --- a/.gitlab-ci/default.yml +++ b/.gitlab-ci/default.yml @@ -23,7 +23,7 @@ select tests: - | getLastSuccesful() { python3 .gitlab-ci/getpipelineinfo.py \ - --access-token $CI_JOB_TOKEN \ + --access-token $CI_JOB_API_READ_TOKEN \ --look-for latest \ --print-format commit-sha }