Would it have prevented this attack? It would still have published the secrets from your container to github.
the whole point of doing such things in ephemeral containers is to not have your secrets accessible from said container
the whole point of doing such things in ephemeral containers is to not have your secrets accessible from said container