Joshua 9:15 NASB
15 Joshua made peace with them and made a covenant with them, to let them live; and the leaders of the congregation swore an oath to them.16 It came about at the end of three days after they had made a covenant with them, that they heard that they were neighbors and that they were living [g]within their land. 17 Then the sons of Israel set out and came to their cities on the third day. Now their cities were Gibeon and Chephirah and Beeroth and Kiriath-jearim..
After having made a covenant with the men of Gibeon that they will not take their cities namely Kiriath Jearim & other cities.
Later when Joshua allots the land to the twelve tribes he allotes Kiriath Jearim to the tribe of Judah.
Joshua 15 NASB
20 This is the inheritance of the tribe of the sons of Judah according to their families.60 Kiriath-baal (that is, Kiriath-jearim), and Rabbah; two cities with their villages.
Did Joshua break the covenant?