Can we verify identity and accept change with commands? And how?

Hi, team.

I want to verify identity and accept change with commands as the same Xcode 15 does in the "Verify app dependencies with digital signatures" video because I would like to build my app with a CI tool. Are there any ways to do that? If I can, could you tell me how?

I searched for how to check the identity with the codesign command but couldn't find the way.

Thank you.

Can we verify identity and accept change with commands? And how?
 
 
Q