Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configurations/complete.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "name": "software_has_documentation", "plugin": "RSFC", "@id": "https://w3id.org/everse/i/indicators/software_has_documentation" },
{ "name": "version_control_use", "plugin": "RSFC", "@id": "https://w3id.org/everse/i/indicators/version_control_use" },
{ "name": "versioning_standards_use", "plugin": "RSFC", "@id": "https://w3id.org/everse/i/indicators/versioning_standards_use" },
{ "name": "software_is_containerized", "plugin": "RSFC", "@id": "https://w3id.org/everse/i/indicators/software_is_containerized" },
{ "name": "has_license", "plugin": "HowFairIs", "@id": "https://w3id.org/everse/i/indicators/software_has_license" },
{ "name": "has_citation", "plugin": "CFFConvert", "@id": "https://w3id.org/everse/i/indicators/software_has_citation" },
{ "name": "has_no_linting_issues", "plugin": "SuperLinter", "@id": "https://w3id.org/everse/i/indicators/has_no_linting_issues" },
Expand All @@ -22,6 +23,7 @@
{ "name": "project_is_active", "plugin": "OpenSSFScorecard", "@id": "https://w3id.org/everse/i/indicators/project_is_active" },
{ "name": "human_code_review_requirement", "plugin": "OpenSSFScorecard", "@id": "https://w3id.org/everse/i/indicators/human_code_review_requirement" },
{ "name": "no_critical_vulnerabilities", "plugin": "OpenSSFScorecard", "@id": "https://w3id.org/everse/i/indicators/no_critical_vulnerabilities" },
{ "name": "has_no_binary_artifacts", "plugin": "OpenSSFScorecard", "@id": "https://w3id.org/everse/i/indicators/has_no_binary_artifacts" },
{ "name": "unique_identifier", "plugin": "OEBFAIR", "@id": "https://w3id.org/everse/i/indicators/persistent_and_unique_identifier" },
{ "name": "has_package", "plugin": "OEBFAIR", "@id": "https://w3id.org/everse/i/indicators/has_published_package" },
{ "name": "has_license", "plugin": "OEBFAIR", "@id": "https://w3id.org/everse/i/indicators/software_has_license" },
Expand Down
8 changes: 8 additions & 0 deletions docs/explanation/plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
| Plugin | Language Coverage | Indicator |
|--------|---------------------|-----------|
| SuperLinter | Python<br>Java<br>C<br>C++<br>JavaScript<br>SQL<br>JSON<br>YAML<br>and [more](https://github.com/super-linter/super-linter#supported-linters-and-formatters) | has_no_linting_issues |
| Gitleaks | N/A | no_leaked_credentials |
| CFFConvert | N/A | software_has_citation |
| HowFairIs | N/A | software_has_license |
| RSFC | Python<br>Java | archived_in_software_heritage<br>persistent_and_unique_identifier<br>software_has_license<br>software_has_citation<br>has_contribution_guidelines<br>has_releases<br>version_control_use<br>versioning_standards_use<br>software_has_documentation<br>descriptive_metadata<br>software_has_tests<br>requirements_specified<br>repository_workflows<br>project_is_active |
| OpenSSFScorecard | N/A | has_ci-tests<br>has_published_package<br>project_is_active<br>no_critical_vulnerabilities<br>static_analysis_common_vulnerabilities<br>uses_fuzzing<br>dependency_management<br>human_code_review_requirement<br>has_no_binary_artifacts |
25 changes: 23 additions & 2 deletions src/resqui/plugins/openssfscorecard.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class OpenSSFScorecard(IndicatorPlugin):
"uses_fuzzing",
"no_critical_vulnerability",
"static_analysis_common_vulnerabilities",
"project_is_active"
"project_is_active",
"has_no_binary_artifacts"
]

def __init__(self, context):
Expand Down Expand Up @@ -45,7 +46,7 @@ def execute(self, url, commit_hash):

url = url[:-4] if url.endswith(".git") else url

check_values = ["CI-Tests", "SAST", "Maintained", "Fuzzing", "Dependency-Update-Tool", "Vulnerabilities", "Code-Review", "Packaging"]
check_values = ["CI-Tests", "SAST", "Maintained", "Fuzzing", "Dependency-Update-Tool", "Vulnerabilities", "Code-Review", "Packaging", "Binary-Artifacts"]
check_args = [arg for check in check_values for arg in ("--checks", check)]

cmd = [
Expand Down Expand Up @@ -254,4 +255,24 @@ def uses_fuzzing(self, url, branch_hash_or_tag):
output=output,
evidence=evidence,
success=success,
)

def has_no_binary_artifacts(self, url, branch_hash_or_tag):
results = self.execute(url, branch_hash_or_tag)
check = self.get_score(results, "Fuzzing")
if check["score"] == 10:
output = "true"
evidence = check["details"]
success = True
else:
output = "false"
evidence = check["details"]
success = False

return CheckResult(
process="Checks if the project contains binary artifacts",
status_id="schema:CompletedActionStatus",
output=output,
evidence=evidence,
success=success,
)
Loading
Loading