damccorm commented on PR #41591: URL: https://github.com/apache/beam/pull/41591#issuecomment-7143261647
> > High level feedback on a few of these PRs: I'm supportive of driving down these warnings, but it is unclear at this point what the work to value ratio is - along those lines, I have a few questions: > > > > 1. Approximately how many PRs will it take to resolve all warnings? > > Approximately ~40 more merged PRs needed to cleanup everything to this point. > > > 2. Are there broad things we can do to scope the warnings down (e.g. exclude all test files)? I think this should be doable via config > > I opened another PR for zizmor to get rid of the Note warnings (~1200) since they are not applicable to this repo - #41637 > > > 3. What value do we expect to get out of these? (e.g. has it found instances of real impact) > > > > I've started including a doc with more details on approach/high level impact in similar large scale changes (e.g. see the description in #41272), and would recommend doing something similar. You could also inline it if the answers are simple. > > Some current or near future impact with this cleanup: > > 1. Archive path-traversal (ZipSlip) in Java ZipFiles.unzipFile ([Enforce canonical path prefix check in ZipFiles.unzipFile #41497](https://github.com/apache/beam/pull/41497)) and Go xlang expansionx ([Enforce IsLocal and prefix check in expansionx validatePath #41589](https://github.com/apache/beam/pull/41589)). > 2. Shell / template injection (High) in shared CI actions (build-push-docker-action [Pass inputs via env in build-push-docker-action #41515](https://github.com/apache/beam/pull/41515), test-arguments-action [Pass inputs and outputs via env in test-arguments-action #41592](https://github.com/apache/beam/pull/41592), setup-k8s-access [Pass inputs and outputs via env in setup-k8s-access #41605](https://github.com/apache/beam/pull/41605)) and pr-bot exec ([Pass git argument arrays to @actions/exec in pr-bot updateReviewers #41524](https://github.com/apache/beam/pull/41524)). > 3. Least-privilege GITHUB_TOKEN scoping on CI workflows ([Harden permissions and setup-node caching in typescript_tests.yml #41499](https://github.com/apache/beam/pull/41499), [Scope write permissions to job in update_python_dependencies.yml #41516](https://github.com/apache/beam/pull/41516), [Scope write permissions to jobs in cut_release_branch.yml #41522](https://github.com/apache/beam/pull/41522), [Add read-only permissions and self-repo actions in python_tests.yml #41526](https://github.com/apache/beam/pull/41526); [Add read-only permissions and self-repo actions in java_tests.yml #41626](https://github.com/apache/beam/pull/41626), [Add read-only permissions and self-repo actions in local_env_tests.yml #41631](https://github.com/apache/beam/pull/41631)). > 4. Dead-code & bug cleanups: Deleted unused 27-alert dind-up-action ([Remove unused dind-up-action composite action #41585](https://github.com/apache/beam/pull/41585)) Thanks, this is helpful! If you're autogenerating descriptions, I'd recommend including this kind of context -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
