Hi,
Triggering a task for container registry via bicep is not possible. The trigger action is basically not a state but operation/action. It is the same like starting or stopping a VM. Bicep simply does not supports operations. If you want to trigger it you could overcome this by using deployment script. The deployment script is a resource that can be deployed by Bicep that basically allows you to do operations by executing Az CLI or Azure PS commands.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.