Full Component Match
Scan an archive to identify a complete component match:Copy
Ask AI
scanoss 1.0.tar.gz
Example Output
Copy
Ask AI
{
"1.0.tar.gz": [
{
"id": "file",
"status": "pending",
"lines": "all",
"oss_lines": "all",
"matched": "100%",
"purl": ["Error! Hyperlink reference not valid."],
"vendor": "scanoss",
"component": "webhook",
"version": "1.0",
"latest": "1.0",
"url": "https://github.com/scanoss/webhook@1.0",
"release_date": "20200320",
"file": "1.0.tar.gz",
"url_hash": "611e5c3a58a3c2b78385556368c5230e",
"file_hash": "611e5c3a58a3c2b78385556368c5230e",
"file_url": "https://github.com/scanoss/webhook/archive/1.0.tar.gz",
"dependencies": [],
"licenses": [
{
"name": "BSD-3-Clause",
"obligations": "https://www.osadl.org/fileadmin/checklists/unreflicenses/BSD-3-Clause.txt",
"copyleft": "no",
"patent_hints": "no",
"source": "component_declared"
}
],
"copyrights": [
{
"name": "Copyright (C) 2017-2020; SCANOSS Ltd. All rights reserved.",
"source": "license_file"
}
],
"vulnerabilities": [],
"quality": [],
"cryptography": [],
"server": {
"hostname": "localhost",
"version": "4.2.4",
"flags": "0",
"elapsed": "0.041169s"
}
}
]
}
Full File Match
Scan an individual file to check for a complete file match:Copy
Ask AI
scanoss webhook-1.0/scanoss/github.py
Example Output
Copy
Ask AI
{
"1.0.tar.gz": [
{
"id": "file",
"status": "pending",
"lines": "all",
"oss_lines": "all",
"matched": "100%",
"purl": ["Error! Hyperlink reference not valid."],
"vendor": "scanoss",
"component": "webhook",
"version": "1.0",
"latest": "1.0",
"url": "https://github.com/scanoss/webhook@1.0",
"release_date": "20200320",
"file": "1.0.tar.gz",
"url_hash": "611e5c3a58a3c2b78385556368c5230e",
"file_hash": "611e5c3a58a3c2b78385556368c5230e",
"file_url": "https://github.com/scanoss/webhook/archive/1.0.tar.gz",
"dependencies": [],
"licenses": [
{
"name": "BSD-3-Clause",
"obligations": "https://www.osadl.org/fileadmin/checklists/unreflicenses/BSD-3-Clause.txt",
"copyleft": "no",
"patent_hints": "no",
"source": "component_declared"
}
],
"copyrights": [
{
"name": "Copyright (C) 2017-2020; SCANOSS Ltd. All rights reserved.",
"source": "license_file"
}
],
"vulnerabilities": [],
"quality": [],
"cryptography": [],
"server": {
"hostname": "localhost",
"version": "4.2.4",
"flags": "0",
"elapsed": "0.041169s"
}
}
]
}
Snippet Detection
If a file is modified slightly (e.g. a newline added), snippet detection identifies partial matches:Copy
Ask AI
echo -e "\n" >> webhook-1.0/scanoss/github.py
scanoss webhook-1.0/scanoss/github.py
Example Output
Copy
Ask AI
{
"webhook-1.0/scanoss/github.py": [
{
"id": "snippet",
"status": "pending",
"lines": "1-192",
"oss_lines": "3-194",
"matched": "99%",
"purl": ["Error! Hyperlink reference not valid."],
"vendor": "scanoss",
"component": "webhook",
"version": "1.0",
"latest": "1.0",
"url": "https://github.com/scanoss/webhook@1.0",
"release_date": "20200320",
"file": "webhook-1.0/scanoss/github.py",
"url_hash": "611e5c3a58a3c2b78385556368c5230e",
"file_hash": "8c2fa3f24a09137f9bb3860fa21c677e",
"file_url": "https://osskb.org/api/file_contents/8c2fa3f24a09137f9bb3860fa21c677e",
"dependencies": [],
"licenses": [
{
"name": "BSD-3-Clause",
"obligations": "https://www.osadl.org/fileadmin/checklists/unreflicenses/BSD-3-Clause.txt",
"copyleft": "no",
"patent_hints": "no",
"source": "component_declared"
}
],
"copyrights": [
{
"name": "Copyright (C) 2017-2020; SCANOSS Ltd. All rights reserved.",
"source": "license_file"
}
],
"vulnerabilities": [],
"quality": [],
"cryptography": [],
"server": {
"hostname": "localhost",
"version": "4.2.4",
"flags": "0",
"elapsed": "0.067090s"
}
}
]
}