For an opaque object to receive correct lighting, it needs to write depth before light list building.
In the project, the custom pass injection is before transparent, which is after opaque rendering so behavior is expected.
To fix your issue you should either use a transparent material with transparent renderqueue, or set the injection point earlier