Pin GitHub Actions to full commit SHA to prevent supply chain attacks

Hi,

mne-python/.github/workflows/codeql-analysis.yml at main · mne-tools/mne-python · GitHub we are using mutable tags in our workflow, so i think we should update with full commit SHA, as this reduces a risk of supply chain attacks. please let me know your thoughts on this, if we should update, I’ll create PR for this.

I was not sure if i should open this issue with enhancement tag or security, so decided to discuss here.

Best,

Aniket

I think this is best discussed in a GitHub issue. I don’t really have an opinion, but it seems like Dependabot can handle this automatically, so there should be no real drop in readability (since it adds the tag as a comment) or maintainability (since it should just work).