-
Notifications
You must be signed in to change notification settings - Fork 180
feat: Add --no-spawn-shell flag to disable shell access #440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit introduces a new flag, --no-spawn-shell, which disables the ability to spawn a shell or open items in external programs. This is useful for environments where shell access should be restricted. This resolves issue dundee#429.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #440 +/- ##
==========================================
- Coverage 83.49% 83.45% -0.05%
==========================================
Files 46 46
Lines 4412 4449 +37
==========================================
+ Hits 3684 3713 +29
- Misses 656 662 +6
- Partials 72 74 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The test failure was due to a "data race" in a test called TestRemoveStoredFile. please check. |
|
Moving a.wait.Done() after the progress channel update prevents race conditions between ResetProgress and processDir accessing shared data. This placement is unconventional and warrants a thorough review. |
|
@dundee please check |
|
Thank you! |
* feat: Add --no-spawn-shell flag to disable shell access This commit introduces a new flag, --no-spawn-shell, which disables the ability to spawn a shell or open items in external programs. This is useful for environments where shell access should be restricted. This resolves issue dundee#429. * test: Increase coverage for --no-spawn-shell flag * fix: data race in TestRemoveStoredFile
This PR introduces a new flag, --no-spawn-shell, which disables the ability to spawn a shell or open items in external programs. This is useful for environments where shell access should be restricted. Fixes #429