Lockfiles, hash pinning and pinning third-party actions to a commit
You lock every dependency to an exact version and hash, and pin third-party actions to a full commit SHA instead of a tag. Then you replay the dependency confusion and typosquatting attacks, plus a retagged action, and watch the build refuse all three. You leave with a dependency pinning policy a team can keep.