Indirect: leave the workflow alone and poison the Makefile it calls
The workflow file is protected, so you leave it untouched. Instead you change the Makefile the pipeline calls, and the trusted workflow runs your commands for you. This indirect poisoned pipeline execution shows why protecting only the CI configuration is not enough when builds execute scripts that live in the repository.