Force fail when API fail
I got this error:
{"message":{"base":["Insufficient permissions for protected ref 'master'"]}}
But the job in the pipeline was green (I guess beause the http answer was 200)
Force the api call to fail in order to ensure a clear fail in the CI