Jan Pawlica
Jan Pawlica
Ran into this exact issue recently. We had a scheduled pipeline fail because the caller workflow didn't have the write permissions needed by the reusable one, but actionlint gave it...
> [@szpn](https://github.com/szpn) You should be able to craft something with templating (if/else/end) and the `env` function. https://taskfile.dev/reference/templating/#os-functions > > LIke this: ` {{if .VAR and not env VAR}} {{ .VAR}}...
> [@szpn](https://github.com/szpn) The templating is quite useful, and allows powerful constructs. I would look for a solution that does not use if/else/end ... it might be a simple as FOO:...