You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Skip checks that don't apply to the current repo type
Scorecard's Azure DevOps support runs every check regardless of
whether it makes sense for the platform. Checks like
Dangerous-Workflow and Token-Permissions look exclusively at
GitHub Actions files and produce misleading results on non-GitHub
repos.
The repos field in checks.yaml already listed supported platforms
per check, but nothing enforced it at runtime. Now GetEnabled
reads that field and drops checks that don't list the repo's
platform.
- Add RepoType to the Repo interface (GitHub, GitLab,
Azure DevOps, local) with implementations on all four concrete
types and the mock
- Pass RepoType through to policy.GetEnabled, which filters
checks against checks.yaml's repos field
- Tag 11 checks as supporting Azure DevOps based on which
client methods are actually implemented
Signed-off-by: Jamie Magee <jamie.magee@gmail.com>
0 commit comments