minder icon indicating copy to clipboard operation
minder copied to clipboard

--owner flag value is not validated while enrolling a provider

Open rdimitrov opened this issue 1 year ago • 1 comments
trafficstars

We still get the Provider enrolled successfully message even if we pass a non-existing org value while enrolling a provider via the --owner flag.

rdimitrov avatar Mar 20 '24 12:03 rdimitrov

Hello @rdimitrov I would like to contribute to this bug fix. Below is the question that i would like to get clarified before sending the fix.

We could validate if the users access token can get the organization API during provider enrollment. Incase of the API failure with 404 due to non-existing gh org, should i invoke delete provider workflow ?

Thanks for your guidance 👍

psekar avatar Jul 10 '24 02:07 psekar