Read-only repository for the team

I’ve created private repository owned to organization and created team with read-only access. I expected that users of this team will not be able to push commits to all branches of the repository.

How can i create repozitory with read-only access for one team and with full control for another team?

Just add your new repository to the read-only team and to your writable team.

Of course I’ve done it but read-only team still is able to push commits