Files
trufflehog/pkg/analyzer/analyzers/notion/scopes.json
Abdul Basit f2dc96e854
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run
[Feat] implementation Notion analyzer (#3869)
### Description:
Since `Notion.co` allows to enable [capabilities](https://developers.notion.com/reference/capabilities) against integration token, It is a good candidate to build an analyzer for it.
![Screenshot 2025-02-04 at 6 46 37 PM](https://github.com/user-attachments/assets/2fb711fe-466f-4b78-9b25-56852f08cd3b)

This PR implements notion analyzer along with its integration test.


### Checklist:
* [ ] Tests passing (`make test-community`)?
* [x] Lint passing (`make lint` this requires [golangci-lint](https://golangci-lint.run/welcome/install/#local-installation))?
2025-02-11 10:35:31 -08:00

47 lines
1.2 KiB
JSON

[
{
"name": "read_content",
"test": {
"endpoint": "https://api.notion.com/v1/pages/`nowaythiscanexist",
"method": "GET",
"valid_status_code": [400],
"invalid_status_code": [403]
}
},
{
"name": "update_content",
"test": {
"endpoint": "https://api.notion.com/v1/pages/`nowaythiscanexist",
"method": "PATCH",
"valid_status_code": [400],
"invalid_status_code": [403]
}
},
{
"name": "insert_content",
"test": {
"endpoint": "https://api.notion.com/v1/pages",
"method": "POST",
"valid_status_code": [400],
"invalid_status_code": [403]
}
},
{
"name": "read_comments",
"test": {
"endpoint": "https://api.notion.com/v1/comments",
"method": "GET",
"valid_status_code": [400],
"invalid_status_code": [403]
}
},
{
"name": "insert_comments",
"test": {
"endpoint": "https://api.notion.com/v1/comments",
"method": "POST",
"valid_status_code": [400],
"invalid_status_code": [403]
}
}
]