keras-team / keras-core

A multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch.
Apache License 2.0
1.27k stars 115 forks source link

Run actions.yml with read-only permissions #881

Closed pnacht closed 11 months ago

pnacht commented 11 months ago

The actions.yml workflow currently runs with write-all permissions. GitHub recommends running workflows with minimal permissions.

actions.yml seems to only run tests, and therefore doesn't need broad permissions.

This issue can be solved in two ways:

I'll be sending a PR along with this issue that sets the read-only permissions. If you also/instead wish to modify the default token permissions:


Disclosure: My name is Pedro and I work with Google and the Open Source Security Foundation (OpenSSF) to improve the supply-chain security of the open-source ecosystem.