Public issue list and private repository

Problem to solve

Hello, and good evening. First, I would like to mention that I’ve recently switched from GitHub to GitLab, so most things here are unfamiliar to me, and it will take some time to adjust. In any case, I’ve transferred my project from GitHub to GitLab with the goal of making one part of the repository public and another private. Specifically, I want the part of the repository where I track issues (issue tracker) to be public so that users can report bugs and I can keep track of what I’ve done to later summarize an update list. Meanwhile, I want the project’s code (the most critical part) to remain private.

Now, I’m curious if this setup is even possible. Additionally, is my project vulnerable in this state? I noticed there’s an option to make the project public while allowing users to only view issues and nothing else. If this works, can I, as a developer, be 100% certain that no external users will gain access to my code?

also apologize for the poorly filled-out form. I rarely write posts on forums, so I hope you won’t hold it against me.

Your help would truly mean a lot to me. Thank you!

Steps to reproduce

Configuration

Versions