There are some limited exceptions, but generally speaking what you are saying would be in violation of Magnuson-Moss.
Unless it can be proven by the warrantor that the 3rd party labor or parts caused the fault, the use of 3rd party labor or parts does not void the warranty.