Access project api in CI

Hi,

I’d like to access the topics that are assigned to the project the pipeline is running in.

My guess it that I would do that best using the projects api and I’d need a personal access token to authenticate.

Is there a better way to do it? If not how could I achieve this with as little additional permissions as possible? Or is a personal access token with read_api really the best solution?