Is this an account permission issue?

Hello,
A GitLab server already has a number of projects. An account has been created for me and I want to create a GitLab Runner for these projects. I created a .gitlab-ci.yml file in the project and wrote commands like the following in it:

stages:
  - build
  - deploy
cache:
  paths:
    - node_modules/
build-project:
  stage: build
  script:
    - rm -rf node_modules
    - cd /SOURCE/
    - git clone http://USER:PASS@IP/jason/project.git
  tags: 
    - backend
    - project
deploy-project:
  stage: deploy
  script:
    - cd /YAML
    - docker compose up -d project
  tags: 
    - backend
    - project

I created a runner for this project in the CI/CD Settings section. Now in the Pipelines section I get the permission related error:

Running with gitlab-runner 16.11.0 (91a27b2a)
  on project ETyfPxwzq, system ID: s_a88f5fe318c9
Preparing the "shell" executor
Using Shell (bash) executor...
Preparing environment
Running on Project-Server...
Getting source from Git repository
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /YAML/builds/ETyfPxwzq/0/jason/project/.git/
remote: You are not allowed to download code from this project.
fatal: unable to access 'http://IP/jason/project.git/': The requested URL returned error: 403
ERROR: Job failed: exit status 1

I’m guessing it’s a problem with my user account because when I create a new project myself and use the same .gitlab-ci.yml I don’t get any errors.
Which part of my account should I check?

Thank you.

Don’t know much about gitlab, but this generated URL looks bogus, so I’d guess this line is wrong.

Hello,
Thank you so much for your reply.
Not really:

I’m guessing it’s a problem with my user account because when I create a new project myself and use the same .gitlab-ci.yml I don’t get any errors.

Not sure what to tell you but that doesn’t look like it’s resolving to a valid URL (unless you hacked it up for posting here, which I probably should have thought of).

But a 403 is a permission denied, so it could just be a security issue where whatever repository you’re trying to access doesn’t allow foreign access.

Hi,
Thanks again.
All repositories are private, but my account has full access. I even tried with root account and I have the same problem. Which part of the settings should I check?

Use of jason instead of json is entirely possible if they want to do that but it might cause confusion. Unless it is a relevant person’s name of course.

Hello,
The problem was that my account was not a member of that project.

Cheers.