testsAndMisc/scripts/utils
Copilot faff8ba349 Fix shell script formatting and add PR workflow validation (#3)
* Initial plan

* fix: format shell scripts with shfmt (convert tabs to 2 spaces)

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* feat: enhance shell-check workflow for PR pre-merge validation

- Add pull_request_target trigger to check PRs from forks
- Add explicit failure message with instructions
- Create BRANCH_PROTECTION.md with setup guide
- Ensure workflow runs on all PRs targeting main/master

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* refactor: improve workflow security and remove redundant exit code

- Remove pull_request_target to avoid executing untrusted fork code
- Remove redundant exit 1 from failure step
- Update documentation to reflect changes
- Standard pull_request trigger handles forks securely

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2026-01-07 22:52:20 +01:00
..
android_guardian Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
analyze_repo.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
convert_video.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
convert_words.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
download_exercism_bulk.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
find_keepassxc.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
format_sd_card.sh feat: script for formatting sd card 2025-11-14 14:49:51 +01:00
generate_study_materials.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
image_to_resolution.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
install_exercism.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
install_offline_docs.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
install_plagiarism_tools.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
lookup_docs.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
organize_downloads.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
pdf_to_image.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
repo_to_study.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
root_bl9000.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
setup_android_adblock.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
setup_media_organizer.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
setup_offline_docs.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
setup_passwordless_system.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
sort_downloads.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
steam_compatibility.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
sync_keepassxc.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
to_mp4.sh Refactor: Extract common code to shared library 2025-12-11 17:43:50 +01:00
to_webm.sh Refactor: Extract common code to shared library 2025-12-11 17:43:50 +01:00
toggle_mic.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
toggle_wheel.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
toggle_window_manager.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
turn_off_auto_idle_screen_shutdown.sh fix: shellcheck issues 2025-11-01 15:36:22 +01:00
txt_to_image.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00
update_android_hosts.sh Fix shell script formatting and add PR workflow validation (#3) 2026-01-07 22:52:20 +01:00