OTTAA-Project / ottaa_project_flutter

Join us to create the first predictive augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
10 stars 4 forks source link

New tests #248

Closed emirchus closed 1 year ago

emirchus commented 1 year ago

Added tests Fixed some tests

gitguardian[bot] commented 1 year ago

⚠️ GitGuardian has uncovered 7 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 | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/customise/customise_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-1f0ff6cde827a9e20fe4f0ba27f4faa4L22) | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/customise/customise_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-1f0ff6cde827a9e20fe4f0ba27f4faa4L32) | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/customise/customise_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-1f0ff6cde827a9e20fe4f0ba27f4faa4L46) | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/customise/customise_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-1f0ff6cde827a9e20fe4f0ba27f4faa4L53) | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/groups/groups_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-d6d2d6a698257cf484a3817ee0c83186L38) | | [-](https://dashboard.gitguardian.com/incidents/secrets) | Generic High Entropy Secret | 7fa0b4ec904dce74d4e3e4abd56e6943166aff91 | test/service/services/groups/groups_service_test.dart | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/7fa0b4ec904dce74d4e3e4abd56e6943166aff91#diff-d6d2d6a698257cf484a3817ee0c83186L45) | | [2655369](https://dashboard.gitguardian.com/incidents/2655369?occurrence=90464001) | Google API Key | ccb5c84f543041ccec40503d99d536dd5cea3faa | ios/Runner/GoogleService-Info.plist | [View secret](https://github.com/OTTAA-Project/ottaa_project_flutter/commit/ccb5c84f543041ccec40503d99d536dd5cea3faa#diff-3644715e6db0d8eb16f43d29561af921c151dd5c22ee7d68ae3e0f32cce351afR12) |
🛠 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/ggshield-docs/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!