Skip to content
Snippets Groups Projects
Commit 3192824e authored by Timo Koch's avatar Timo Koch
Browse files

[ci] Use api read token for read access

parent 56a4ade7
No related branches found
No related tags found
1 merge request!2655[ci] Use api read token for read access
Pipeline #4738 waiting for manual action
......@@ -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..."
......
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment