What you did (step by step)
- Connect GitHub to a project
- Create a view-only link to share the OSF project (check off "Anonymize contributor list for this link (e.g., for blind peer review)")
- Go to the view-only link
Where does this happen on the OSF?
Anonymized view-only homepage of a project, e.g., https://osf.io/ga9w8/?view_only=3ec356c101944ec092c6badfbb0fb593
What you expected
The open button should not appear for people to go to the GitHub link

What actually happened
One can click the open button and find out information about the contributors of the OSF repo
Potential causes
Related code that may have caused this:
|
if (item.data.permissions && item.data.permissions.view && !item.data.permissions.private) { |
|
buttons.push( |
|
m('a.text-info.fangorn-toolbar-icon', {href: item.data.extra.webView}, [ |
|
m('i.fa.fa-external-link'), |
|
m('span', 'View on GitHub') |
|
]) |
|
); |
|
} |
|
} |
Suggest a solution
Similar to the hidden GitHub repo (username/repo-name) in a view-only link, as seen below, the Open button should also be hidden.
| Not view-only |
View-only |
 |
 |
Final words
I think the branch list should also be hidden in a view-only link
What you did (step by step)
Where does this happen on the OSF?
Anonymized view-only homepage of a project, e.g., https://osf.io/ga9w8/?view_only=3ec356c101944ec092c6badfbb0fb593
What you expected
The open button should not appear for people to go to the GitHub link
What actually happened
One can click the open button and find out information about the contributors of the OSF repo
Potential causes
Related code that may have caused this:
osf.io/addons/github/static/githubFangornConfig.js
Lines 283 to 291 in 3920a29
Suggest a solution
Similar to the hidden GitHub repo (username/repo-name) in a view-only link, as seen below, the Open button should also be hidden.
Final words
I think the branch list should also be hidden in a view-only link