v1
latestOpenAPI 3.0.32026-07-26233989.2 KBAnalysis
Get Secrets Scan Results
Retrieves the secrets scanning results for a specific repository and commit
post/api/analysis/results/secrets
Request body
Example request
{
"repo": "owner/repository",
"commit_id": "abc123def456",
"branch": "main",
"access_token": "ghp_xxxxxxxxxxxx",
"service": "github",
"gitlab_base_url": "https://gitlab.com"
}Response
Secrets scan results retrieved successfully
Example response
{
"results": {
"secrets": [
{
"type": "Secret Keyword",
"filename": "/mnt/lambda/owner/repository/abc123def456/src/config.py",
"hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
"line_number": 14,
"confidence_score": "FALSE_POSITIVE"
}
],
"secretsCount": 1
},
"status": "done",
"commit_id": "abc123def456"
}