Don't forget to pin your GitHub Actions to SHAs instead of tags, that may or may not be immutable!
(IOW You definitely should still hash-pin actions, but doing so isn’t sufficient in all circumstances.)
https://github.com/aquasecurity/trivy-action/blob/57a97c7e78...
https://github.com/aquasecurity/trivy-action/pull/519
Edit: ah, I see you are referring to the setup-trivy action rather than the trivy-action. Yeah, that looks like a bad default, although to be fair it is a setting that they document quite prominently, and direct usage of the setup-trivy action is a bit atypical as-is.