sourcegraph / jsonrpc2

Package jsonrpc2 provides a client and server implementation of JSON-RPC 2.0 (http://www.jsonrpc.org/specification)
MIT License
195 stars 62 forks source link

ci: set minimal permissions to GitHub workflows #73

Closed diogoteles08 closed 1 year ago

diogoteles08 commented 1 year ago

Closes #72

On the lsif.yml file I couldn't be 100% sure on the permissions required on the lsif-go job, so I let only with contents: read for now -- let me know if this should be changed.

Note that the permissions defined on the line 5 will be the same permissions granted on the line 17, as the secrets.GITHUB_TOKEN passed as parameter is the same token that will be used to run the workflow in general.