roberthsu2003 / __11304_python_2024_tvdi__

3 stars 26 forks source link

18_林正銘_issue276作業_上交 #283

Closed arminlinster closed 1 month ago

arminlinster commented 1 month ago

18_林正銘_issue276作業_上交 06/27 , armin lin

gitguardian[bot] commented 1 month ago

⚠️ GitGuardian has uncovered 3 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 | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [-](https://dashboard.gitguardian.com/workspace/75666/incidents/secrets) | | PostgreSQL Credentials | cf83537f258f413e85c1af5df3f50cfe9c90ec6c | homework/林正銘/issue276/index.py | [View secret](https://github.com/roberthsu2003/__11304_python_2024_tvdi__/commit/cf83537f258f413e85c1af5df3f50cfe9c90ec6c#diff-ce9ad6ba6185af542b21a848c6cedcf9911731142217c0d2412da0bc29bc1f52L6) | | [12018284](https://dashboard.gitguardian.com/workspace/75666/incidents/12018284) | Triggered | PostgreSQL Credentials | 355a1d831521bcb683696a81a193045e5c9842b9 | 2024_06_24/lesson2.ipynb | [View secret](https://github.com/roberthsu2003/__11304_python_2024_tvdi__/commit/355a1d831521bcb683696a81a193045e5c9842b9#diff-a5abd8637ab3b3c7ce67b8b3e213e28b38f9a8ffd2e9d1b891ba551fc134147bL113) | | [12018284](https://dashboard.gitguardian.com/workspace/75666/incidents/12018284) | Triggered | PostgreSQL Credentials | 355a1d831521bcb683696a81a193045e5c9842b9 | 2024_06_24/lesson2.py | [View secret](https://github.com/roberthsu2003/__11304_python_2024_tvdi__/commit/355a1d831521bcb683696a81a193045e5c9842b9#diff-4ab02bab9b5d638f4e2338471f5aad9ffbf27f21a75df634b5acb74af15bb640L6) |
🛠 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/secrets-detection-engine/detectors/specifics/postgres_uri#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.