I can't judge your specific situation, but sharing gift card codes with anyone you don't absolutely trust is unsafe.
Golden rule: Legitimate companies never ask for gift card codes over phone, email, or chat. Treat them like cash—once given, they're gone.