github / policy-controller

Temporary GitHub managed Sigstore Policy Controller fork
Apache License 2.0
2 stars 1 forks source link

Handle non-compliant referrers endpoint response with custom transport #170

Closed malancas closed 4 months ago

malancas commented 4 months ago

Part of https://github.com/github/package-security/issues/1731

Use a custom transport to handle non-compliant 406 responses from APIs when attempting to reach the refferes. endpoint. If an API does not support the referrers API, we generally expect a 404 response, but we have seen a 406 response as well and want to handle that case.