As Israel's leader, Joshua had the right to gather the Gibeonites for questioning.
"when in fact you live among us?": By using this phrase, Joshua quietly admitted (acknowledged without saying it directly) that he should not have trusted the Gibeonites without first asking the Lord.