How to Restrict Artifact Download Access in GitLab CI?

I found a solution to the issue. After conducting more research and delving deeper into the GitLab documentation, I discovered this link: GitLab CI/CD Artifacts Access, which addresses the problem.

After upgrading GitLab to the latest version, I used the following configuration to restrict artifact download access:

job:
  artifacts:
    access: none