Commit 0865ff6a authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

privacy leak. old token invalidated

parent da1b9b42
......@@ -15,7 +15,7 @@ build-job:
- python3 setup.py sdist bdist_wheel
- apt-get install -y -qq curl
# get the current package id
- "export ID=$(curl --request GET --header 'PRIVATE-TOKEN: 4xrVmceN2LRhSuF-HSbn' 'https://gitext.gfz-potsdam.de/api/v4/projects/1055/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
- "export ID=$(curl --request GET --header 'PRIVATE-TOKEN: ${API_ACCES_TOKEN}' 'https://gitext.gfz-potsdam.de/api/v4/projects/1055/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
# remove the package, as we want a new build even if the version number did not change
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment