-
Notifications
You must be signed in to change notification settings - Fork 123
Description
I'd like to suggest definition of minimal permissions for build.yml cause it will increase pacparser supply chain security.
This is considered a security concern because Github grants write-all permission to all workflows, which allows an attacker to exploit this permissions in case of a compromised workflow. Thus, it is both a recommendation from the OpenSSF Scorecard and the Github itself to always use credentials that are minimally scoped.
This means setting the top level permission as contents: read (usually enough to most actions) or even read-all, and grant any write permission at the job level
Let me know if you are interested in this change and I'll submit the PR as soon as possible.
Context: I'm Joyce, working on behalf of Google and the OpenSSF to increase supply chain security in many open source projects.