Can you not a government agency if you need a student loan?
Yes, you can have a government job if you have a student loan. There is even a program of student loan repayment, which can for you too, that some vocations are in high demand but low supply, be approved.
Ask your HR person if it is possible for your situation, if she calls you for the job. Your records must show the payment of your student loan, or you will not check on the background and will be published.