Determine the permissions required for actions

We would like to determine the permissions for our actions so that we can explicitly state that. GitHub Actions: Control permissions for GITHUB_TOKEN | GitHub Changelog

To determine the permissions that are required for the actions, is parsing the GitHub logs the correct way to do it?

Thanks