Add auth check to import github api endpoints
What does this MR do and why?
Fix for follow-up issue #377724 (closed)
Adds authentication check for /api/v4/import/github/cancel and /api/v4/import/github endpoints
Screenshots or screen recordings
POST /api/v4/import/github
POST /api/v4/import/github/cancel
How to set up and validate locally
For import:
- Send POST
/api/v4/import/githubwithout provided PAT in headers
For cancel:
- Trigger project import using POST
/api/v4/import/github - Send POST
/api/v4/import/github/cancelwithout provided PAT in headers
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.