Giter VIP home page Giter VIP logo

Comments (9)

azeemshaikh38 avatar azeemshaikh38 commented on June 12, 2024 1

A side note - might be a good fit for AllStar i.e an AllStar policy can check all org members have 2fa enabled and bring this to the org's attention (in a private manner). @jeffmendoza fyi.

from scorecard.

naveensrinivasan avatar naveensrinivasan commented on June 12, 2024

I think the more practical would be "Do top 5/10contributors have 2FA enabled"?

from scorecard.

laurentsimon avatar laurentsimon commented on June 12, 2024

I think the more practical would be "Do top 5/10contributors have 2FA enabled"?

probably depends on how many contributors the project has?
We could also check that reviewers have 2FA. A compromised contributor may try to push bad code but would be detected by reviewers. Having a score instead of a binary pass/fail check would also help in general. It would encourage developers to make incremental improvements towards a long-term goal.

In terms of scoring, it could be:

  1. Find all contributors that have 2FA, and compute the percentage of the code they have contributed to. That would be the score.
  2. Alternatively, find the reviewers that have 2FA and compute the percentage of code they reviewed.

Not sure this is possible with a reasonable number of API calls, though. We cannot go back in history too much either, so this may be done over the last n months, for example.

from scorecard.

laurentsimon avatar laurentsimon commented on June 12, 2024

API for org https://docs.github.com/en/rest/reference/orgs#members. May require special permission to use.

from scorecard.

ristomcgehee avatar ristomcgehee commented on June 12, 2024

API for org https://docs.github.com/en/rest/reference/orgs#members. May require special permission to use.

This API allows querying for users in your organization that do not have 2FA enabled. It wouldn't fit our needs of being able to tell if an arbitrary user has 2FA enabled. I would be surprised if Github ever published an API allowing querying whether arbitrary users have 2FA enabled. I think a lot of people wouldn't be comfortable with it being public knowledge that they don't use 2FA. We might not ever be able to do this issue.

from scorecard.

laurentsimon avatar laurentsimon commented on June 12, 2024

if we could query the list of maintainers for a repo/org, we could then cross-check which maintainers don't have 2FA enabled. I've not looked closely at the API, though.

We don't really need all users, we mostly need maintainers of the project, or devs that can reviews PRs, etc

from scorecard.

ristomcgehee avatar ristomcgehee commented on June 12, 2024

if we could query the list of maintainers for a repo/org, we could then cross-check which maintainers don't have 2FA enabled.

It looks like this API is only available if you are the owner of that organization, so I don't think it would be useful in Scorecard. It might work for AllStar; that's a good idea, Azeem.

from scorecard.

laurentsimon avatar laurentsimon commented on June 12, 2024

ok, yes allstar works well too. I'm adding these issues in scorecard repo first and allstar is the fallback solution in my mind, since allstar is for orgs but scorecard can be more broadly used. Here's another one that I would like to have in scorecard, but may only be viable for allstar #1655 :/

from scorecard.

david-a-wheeler avatar david-a-wheeler commented on June 12, 2024

It looks like this API is only available if you are the owner of that organization, so I don't think it would be useful in Scorecard.

We already have another (experimental) measure in Scorecard that requires this. So I think it is appropriate to add it, and only measure it when it's possible. Also, Scorecard isn't limited to GitHub; we're adding GitLab, and more may follow (I hope). Just include some sort of marker indicating in a machine-processable way that "we could not get this data" in those cases.

from scorecard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.