Cualquier usuario externo abre un PR desde un fork al repositorio principal.
actions/checkout clona el HEAD del fork (ref: ${{ github.event.pull_request.head.sha }}), luego ejecuta npm run build del código del atacante.
actions/checkout
ref: ${{ github.event.pull_request.head.sha }}
npm run build