For secret scanning all you need to do is enable the checkbox for advanced security. (under settings -> repositories)
Advanced Security will scan for secrets automatically and populate the dashboard.