* impelmented analyzer interface with data models for Bitbucket * Added bitbucket permissions in yaml add ids to keep resources distinguishable. * [chore] moved expected output of test in json file to neat the code. corrected the fully qualified name for repository resources. --------- Co-authored-by: Abdul Basit <[email protected]>
92 lines
2.2 KiB
JSON
92 lines
2.2 KiB
JSON
{
|
|
"AnalyzerType": 3,
|
|
"Bindings": [
|
|
{
|
|
"Resource": {
|
|
"Name": "Repository",
|
|
"FullyQualifiedName": "bitbucket.com/credential/repo_access_token",
|
|
"Type": "repo_access_token",
|
|
"Metadata": {
|
|
"type": "Repository Access Token (Can access 1 repository)"
|
|
},
|
|
"Parent": null
|
|
},
|
|
"Permission": {
|
|
"Value": "pipeline",
|
|
"Parent": null
|
|
}
|
|
},
|
|
{
|
|
"Resource": {
|
|
"Name": "Repository",
|
|
"FullyQualifiedName": "bitbucket.com/credential/repo_access_token",
|
|
"Type": "repo_access_token",
|
|
"Metadata": {
|
|
"type": "Repository Access Token (Can access 1 repository)"
|
|
},
|
|
"Parent": null
|
|
},
|
|
"Permission": {
|
|
"Value": "pullrequest",
|
|
"Parent": null
|
|
}
|
|
},
|
|
{
|
|
"Resource": {
|
|
"Name": "Repository",
|
|
"FullyQualifiedName": "bitbucket.com/credential/repo_access_token",
|
|
"Type": "repo_access_token",
|
|
"Metadata": {
|
|
"type": "Repository Access Token (Can access 1 repository)"
|
|
},
|
|
"Parent": null
|
|
},
|
|
"Permission": {
|
|
"Value": "runner",
|
|
"Parent": null
|
|
}
|
|
},
|
|
{
|
|
"Resource": {
|
|
"Name": "Repository",
|
|
"FullyQualifiedName": "bitbucket.com/credential/repo_access_token",
|
|
"Type": "repo_access_token",
|
|
"Metadata": {
|
|
"type": "Repository Access Token (Can access 1 repository)"
|
|
},
|
|
"Parent": null
|
|
},
|
|
"Permission": {
|
|
"Value": "webhook",
|
|
"Parent": null
|
|
}
|
|
}
|
|
],
|
|
"UnboundedResources": [
|
|
{
|
|
"Name": "basit-trufflesec/repo1",
|
|
"FullyQualifiedName": "bitbucket.com/repository/{8961ef70-000c-47ca-9348-5f9ecee875d6}",
|
|
"Type": "repository",
|
|
"Metadata": {
|
|
"is_private": true,
|
|
"owner": "basit-trufflesec",
|
|
"owner_id": "{521b49b6-7709-484a-8aa8-ecc3a6da08eb}",
|
|
"role": "admin"
|
|
},
|
|
"Parent": {
|
|
"Name": "repo-analyzer",
|
|
"FullyQualifiedName": "bitbucket.com/project/{8a693e10-087f-41fc-ba67-2d1414ab1c86}",
|
|
"Type": "project",
|
|
"Metadata": null,
|
|
"Parent": {
|
|
"Name": "basit-trufflesec",
|
|
"FullyQualifiedName": "bitbucket.com/workspace/{521b49b6-7709-484a-8aa8-ecc3a6da08eb}",
|
|
"Type": "workspace",
|
|
"Metadata": null,
|
|
"Parent": null
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"Metadata": null
|
|
} |