I tried deploying an app which is on my friends github and it is a public repo. It shows me “Request failed with status code 403”. Can anyone help me come out of this situation.
Hey there, thanks for reaching out and welcome to the Streamlit community!
A 403 error when deploying from your friend’s public GitHub repo usually means there’s a permissions or account linking issue. Even for public repos, you must have your GitHub account properly connected to Streamlit Community Cloud, and sometimes you need admin or write access to the repo, especially if deploying from an organization account or if the repo was recently moved or renamed.
Here’s what you should do:
- Make sure you’re signed in to Streamlit Community Cloud with your GitHub account and that GitHub is linked as your source control (see Manage your GitHub connection).
- If you’re not the repo owner, fork the repo to your own GitHub account and deploy from your fork.
- If you recently changed your GitHub email or have multiple accounts, log out of Streamlit completely, then log in first with your email (or Google), then with GitHub (see this guide).
- If you still get a 403, your account may have been flagged by automated systems—open a support ticket and include your GitHub username (see official docs).
If you can, please share a minimum reproducible example or your repo link so the community can help debug. Community members, feel free to jump in with your experiences or tips!
Sources: