Files
trufflehog/pkg/analyzer/analyzers/bitbucket/expected_output.json
Abdul BasitandAbdul Basit becc2c4010 [analyze] Add analyze interface for Bitbucket (#3224)
* 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]>
2024-09-05 16:04:35 -07:00

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
}