Authorship of code published in Zenodo for non-contributing authors of main paper We are working on a paper that is heavy in both theory and numeric. The numerical code was exclusively developed by a subset of the authors (i.e. some of the authors have no made a single contribution to the implementation of such code).
The code will be published in Github and in Zenodo to get an associated DOI of it for citation. When doing so, one has to declare the authors of said code. Should all authors of the paper be included or just those that exclusively contributed to the code?

Arguments I see in favor: The code came from the developed theory and would have never been written without extensive discussions among the authors of the paper.

Arguments I see against: These authors do not even have a Github username and are not listed as contributors in the repository. Even if they join Github, the repository history explicitly shows who contributed to it.
It is an interesting situation. Clearly the 'authors of the code' have the copyright (and the repository shows who actually contributed). But the purpose of the code was to address a question broadly, as demonstrated by the broader group on the paper. For the purposes of a DOI (which does not indicate IP ownership on the code) I think having the same author list as the paper is acceptable, but not necessary.
As something else to think about, would the code have been developed outside the context of the project leading to the paper? Did the non-code-writing collaborators have no intellectual input to the code?
As an aside, if the repository URL disappears, then  the DOI link will die as well.