Skip to content

Make git lfs for push mirrors work to GitHub.com

What does this MR do?

There are two changes required:

  • Add an Accept: application/vnd.git-lfs+json header to batch requests
  • Support the verify action

Without the former, GitHub (but not GitLab) responds with a 406 HTTP response to the batch request. With it, GitHub responds with a spec indicating that verify should be used.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #250654 (closed)

Part of #254281 (closed)

Edited by Nick Thomas

Merge request reports