"给" can be used in the passive voice. It can either directly replace "被" or be used with "被." Compared with "被," "给" is more colloquial.
"给" can directly replace "被."
When using "给” in the passive voice, you can also use it with "被." The structure would then be "被...给…." In this structure, you must explain "the doer." "给" here is used to give an emphasis of the passive voice. You can find more information on this page 被.