And this is not realistically going to happen unless you are a large multinational, bank, or doing business in sensitive sectors.
Not actively blocking accounts identified as Iranian is not even the same as specifically trading with Iran. Like many smaller US-based web-services who also do not actively block, Github might well have gotten away with it as well, like the did the last couple of years.
A Maltese-based company not blocking Iranian users might be designated, but unless they are, and it is pretty unlikely that they would be, they are doing nothing wrong under US law.