LumiSpy / lumispy

Luminescence data analysis with HyperSpy.
https://lumispy.org
GNU General Public License v3.0
26 stars 18 forks source link

harden security of github actions #76

Closed jlaehne closed 2 years ago

jlaehne commented 3 years ago

See https://github.com/hyperspy/hyperspy/issues/2727

We should:

jlaehne commented 2 years ago

Restricted permissions for Actions:

jordiferrero commented 2 years ago

The only actions that use secrets in lumispy are in the release.yml actions:

@jlaehne what do you want to do with this? I've been reading a bit more on pinning actions, but not sure how to proceed.

jlaehne commented 2 years ago

I am not fully sure either, but think that for these actions it should be OK as it is. In that case we could close this issue.

@ericpre I think we never implemented pinning for HyperSpy either?

ericpre commented 2 years ago

From checking the current workflows, the ones with permissions: contents: write are not using third party actions, which means that this is fine as it is.