google / myanmar-tools

Detect and convert the Zawgyi-One font encoding in C++, Java, JavaScript, PHP, and Ruby
Other
243 stars 87 forks source link

Set token permissions for workflows #115

Closed joycebrum closed 1 year ago

joycebrum commented 1 year ago

Hi, as mentioned through email, this PR solves the Token-Permissions check.

The security reason of specifying the permissions for the workflows is that GitHub, for default, grant write-all permission, which could be exploited in case of the workflow got compromised.

Thus, it is both a recommendation from OpenSSF Scorecard and the Github to always use credentials that are minimally scoped.

Workflow run with minimal permission: