VSTS anybody managed to use "secure file" in azure-pipelines.yml?

I would like to use "download secure file" in a dev azure task - and that works exactly as expected within a task in "release pipeline" (in "Releases"). However, when I try to do the same in a "Bui...