mahaveergurjar / Chatbot

Chat application allows users to send messages and receive responses from a language model API. It supports code formatting, explanations, and link formatting. The application uses GoogleGenerativeAI for API requests and displays chat messages in a styled interface.
MIT License
7 stars 23 forks source link

Feature/theme button #13

Closed Pseudophoenix closed 3 weeks ago

Pseudophoenix commented 3 weeks ago

I have made the changes in following files at following lines:

gitguardian[bot] commented 3 weeks 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.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard. Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [-](https://dashboard.gitguardian.com/workspace/581432/incidents/secrets) | - | Google API Key | 2129a52267b82504588214b5c3eb64f0b81d9219 | Issue | [View secret](https://github.com/mahaveergurjar/Chatbot/commit/2129a52267b82504588214b5c3eb64f0b81d9219#diff-48dc76dfa23ae03fea1372c5ed6c0e1bd62eaeca7bba6d804eb0afa87972f031L6) | | [-](https://dashboard.gitguardian.com/workspace/581432/incidents/secrets) | - | Google API Key | b7feb2b2d875f3636f82614e16c3559f97efd894 | Issue | [View secret](https://github.com/mahaveergurjar/Chatbot/commit/b7feb2b2d875f3636f82614e16c3559f97efd894#diff-48dc76dfa23ae03fea1372c5ed6c0e1bd62eaeca7bba6d804eb0afa87972f031R6) |
🛠 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/googleaiza#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.

mahaveergurjar commented 3 weeks ago

Thanks but remember next time not push .env file in any project ok its carry important you should rename .env.example to .env so .env are added in .gitignore so not added on github

Pseudophoenix commented 3 weeks ago

Thankyou sir .... Will take care in future

Pseudophoenix commented 3 weeks ago

I had one query...will this be counted for my hacktoberfest contribution or not....and if not what had to be done for same??

mahaveergurjar commented 3 weeks ago

its counted in hacktoberfest you can see in your hacktoberfest profile

Pseudophoenix commented 3 weeks ago

ok just heard by that guy to attach hacktoberfest label...what is that?

mahaveergurjar commented 3 weeks ago

To track its part of hacktoberfest

mahaveergurjar commented 3 weeks ago

If you are worried about this pr are count or not then you can also make one more pr ok to update readme also add dark and light theme screenshot and also right about in feature of dark and light mode ok @Pseudophoenix

Pseudophoenix commented 3 weeks ago

Sure