request using CI_JOB_TOKEN cannot be used with 17.9.1 (it worked with 17.8.4)
I have a problem after an update to gitlab 17.9.1 (latest) from 17.8.4. Everything seems to be working fine except the ability to get some files from the repository without cloning it, because it is huge.
Here is the relevant part from the job:
build-git-baseline:
stage: build
image:
name: ....
entrypoint: [""]
variables:
GIT_STRATEGY: none # Don't clone the Git repository. (Cloned in the script instead)
script:
- env | sort
- >
wget https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}/-/raw/${CI_COMMIT_SHA}/container/dockerfiles/Dockerfile.git
-O Dockerfile.git
So the problem is that wget fails to authenticate and instead of a valid Dockerfile I get a sign in/redirection page which eventually fails being used for creating a docker container - of course.
Is this a known issue?