<POST> Supply Chain Lineage Check API
1 min
The Supply Chain Lineage Check API helps users determine whether a given GitHub, Hugging Face, or S3 bucket repository has already been scanned. By providing the repository type and URL, users can verify its scan history, avoiding redundant security assessments and optimizing workflow efficiency.
The following parameters are used for supply chain Lineage Check API. To learn more about different input parameters and how to use the API, refer to AI/ML Supply Chain documentation.
Supply Chain Lineage Check API
The Supply Chain Lineage Check API verifies if a given GitHub, Hugging Face, or S3 repository has already been scanned for security assessment.
POST
https://api.aws.boschaishield.com/prod/api/ais/v1.5/developer/lineage_check
import requests
url = "https://api.aws.boschaishield.com/prod/api/ais/v1.5/developer/lineage_check"
payload = "{\"repo_type\":\"String\",\"repo_url\":\"String\",\"branch_name\":\"String\",\"depth\":\"Number\",\"aws_access_key_id\":\"String\",\"aws_secret_access_key\":\"String\",\"region\":\"String\",\"bucket_name\":\"String\"}"
headers = {
'x-api-key': 'string',
'Org-Id': 'string'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)