Scheduled pipeline failing with "404 Project Not Found" with CI_JOB_TOKEN
I have a scheduled pipeline that was working fine before (IIRC) and fetches a file from the package registry.
To fetch the file from the latest version of the package I'm using CI_JOB_TOKEN, but the job is now failing with 404 Project Not Found error
The following command is in the before_script (I'm using it to fetch the latest package id and using the id then to fetch the file):
curl -s \
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/"
{"message":"404 Project Not Found"}
Edited by Junaid Ali