-
Notifications
You must be signed in to change notification settings - Fork 44.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(platform): Agent Store V2 #8306
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for auto-gpt-docs canceled.
|
…ub.com:Significant-Gravitas/AutoGPT into swiftyos/open-1920-marketplace-home-components
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Co-authored-by: Swifty <[email protected]>
* Updates to agent dashboard * fix squished "select all" text in table * fix table alignment --------- Co-authored-by: Swifty <[email protected]>
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
|
||
def get_image(): | ||
url = faker.image_url() | ||
while "placekitten.com" in url: |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High test
placekitten.com
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 3 days ago
To fix the problem, we need to parse the URL and check the hostname specifically, rather than looking for a substring within the entire URL. This ensures that we accurately identify and exclude URLs from "placekitten.com" and its subdomains.
The best way to fix this is to use the urlparse
function from the urllib.parse
module to extract the hostname from the URL and then check if it matches "placekitten.com". This approach is more robust and prevents bypassing the check by embedding "placekitten.com" in other parts of the URL.
-
Copy modified lines R42-R43 -
Copy modified line R46
@@ -41,5 +41,7 @@ | ||
|
||
from urllib.parse import urlparse | ||
|
||
def get_image(): | ||
url = faker.image_url() | ||
while "placekitten.com" in url: | ||
while urlparse(url).hostname == "placekitten.com": | ||
url = faker.image_url() |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Background
To make life easier when creating our new ui, I'm going to be building up a compent library and making sure they all stay pure react functions.
Changes 🏗️
TODO
Filter Chips
Featured Store Card
Creator Card
Button
Callout
NavBar
Testing 🔍
Note
Only for the new autogpt platform, currently in autogpt_platform/