redouane59 / twittered

Twitter API client for Java developers
Apache License 2.0
239 stars 66 forks source link

feat: add dm lookup endpoint v2 #416

Closed redouane59 closed 2 years ago

redouane59 commented 2 years ago

See https://developer.twitter.com/en/docs/twitter-api/direct-messages/lookup/quick-start

gitguardian[bot] commented 2 years ago

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [4844467](https://dashboard.gitguardian.com/incidents/4844467?occurrence=66781683) | Generic High Entropy Secret | 322f43403768a3caf8273c0b354a223ebe5f955a | src/test/resources/tests/dm_simple_example_v2.json | [View secret](https://github.com/redouane59/twittered/commit/322f43403768a3caf8273c0b354a223ebe5f955a#diff-da40dd9573ed13b94d73146f32d90b3d5b48a732bdd905bb41cfb647d09ac10cR14) | | [4844468](https://dashboard.gitguardian.com/incidents/4844468?occurrence=66781684) | Generic High Entropy Secret | 322f43403768a3caf8273c0b354a223ebe5f955a | src/test/resources/tests/dm_simple_example_v2.json | [View secret](https://github.com/redouane59/twittered/commit/322f43403768a3caf8273c0b354a223ebe5f955a#diff-da40dd9573ed13b94d73146f32d90b3d5b48a732bdd905bb41cfb647d09ac10cR15) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/detectors/generics/generic_high_entropy_secret#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/internal-repositories-monitoring/integrations/git_hooks/pre_commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 47 Code Smells

51.9% 51.9% Coverage
0.0% 0.0% Duplication