Just going to echo this post:
Pin your GitHub Actions michaelheap.com
Pin your actions!
I’ve done it in my work, and while it’s a little tedious to setup initially it’s not to bad with dependabot updating them automatically.