Contract tests collection

The contract tests collection in POSTMAN requires a schemaUrl defined in the env. In my case I can very well use a github raw URL to my openapi spec in there but that URL expires after a certain time. How to overcome this problem?
I was suggested to edit the GET Schema URL API from that and put in auth there but that does not work as I have a GitHub PAT only.