I think most commenters are really missing the point. This is not a "maybe" possible attack that only works if the stars align. This is "if you follow the AI hype and use this tool naiively, anyone can access your private repos".
This is a security vulnerability. This is an attack. If I leave my back door unlocked, it's still a burglary when someone walks in and takes everything I own. That doesn't mean that suddenly "it's not an attack".
This is victim blaming, nothing else. You cannot expect people to use hyped AI tools and also know anything about anything. People following the AI hype and giving full access to AIs are still people, even if they lack a healthy risk assessment. They're going to get hurt by this, and you saying "its not an attack" isn't going to make that any better.
The reality is that the agent should only have the permissions and accesses of the person writing the request.