How do rating agencies assess sustainability?

To many companies, ESG is still a relatively new field, which is why it is important to understand how rating agencies evaluate sustainability and how the approach has changed over the years.