How to reference file packed as resource in gradle plugin

Hi,

I’m writing small plugin to simplify some signing for internal projects. I’m packing plugin with some key and I would like to use it during gradle plugin task execution. How could I reference this file?