MrPutzi / design-ai-toolkit

Design + AI Toolkit
https://design-plus-ai-toolkit.vercel.app/
1 stars 0 forks source link

Implemented image upload and upscale functionality in realesrgan.tsx #8

Closed MrPutzi closed 5 months ago

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
design-ai-toolkit ❌ Failed (Inspect) Mar 26, 2024 10:15am
gitguardian[bot] commented 5 months ago

⚠️ GitGuardian has uncovered 1 secret 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 secret in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [10088641](https://dashboard.gitguardian.com/incidents/10088641?occurrence=127689183) | Triggered | Replicate user access token | 74b080dbcfed72405fda3ce4d860e8023a730357 | pages/api/realesrgan.ts | [View secret](https://github.com/MrPutzi/design-ai-toolkit/commit/74b080dbcfed72405fda3ce4d860e8023a730357#diff-df9a00a071ed4a891e0a7c4a2fc3597fb937a75a5ec2fd7e172ca2c59d6b6e6eR51) |
🛠 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 secret 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 this secret](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/specifics/replicate_user_access_token#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!

codeautopilot[bot] commented 5 months ago

PR summary

The Pull Request introduces image upload and upscale functionality to a component named realesrgan.tsx. The changes include UI updates, removal of unused components, and the addition of API endpoints to handle image upscaling. The PR aims to provide users with the ability to upload images and enhance their resolution using the Real-ESRGAN model.

Suggestion