webcomponents / polyfills

Web Components Polyfills
BSD 3-Clause "New" or "Revised" License
1.13k stars 165 forks source link

Fix: Add Top Level Token Permissions to GitHub Workflows #539

Closed joycebrum closed 7 months ago

joycebrum commented 1 year ago

Hi I'm working on behalf of Google and the OpenSSF to help Open Source Projects to improve Supply-Chain Security by following some security practices checked by OpenSSF Scorecard.

Description

Github Workflows, when not specified, always have the most permissive permission: write-all.

This brings lots of possible vulnerabilities that can be exploit such as:

See some additional content about this issue at:

Solution

To solve this vulnerability one approach is always set top level permission as read only and grant any write permissions needed on the run level.

If it is ok for you, I can suggest the PR with the changes described above.

joycebrum commented 1 year ago

Hi! This issue has been idle for quite some time. Do you plan on considering these changes? If so just let me know and I'll be happy to submit a PR. Otherwise I will wait up to 2 more months to close the issue. Let me know if you rather keep it open as "not planned" for later. Thanks!