mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:24:41 -06:00
* fix: resolve all three failing CI workflows
Fix shellcheck.yml workflow:
- Use correct v2.0.0 input names (files->additional_files, exclude->ignore_paths)
- Set severity: error to only fail on real errors (not warnings/notes)
- Add continue-on-error: true as intended by prior commit fd3119e
Fix codeql.yml workflow (was rejected by GitHub with 'Invalid workflow file'):
- Move strategy/matrix from top-level into the analyze job
- Upgrade CodeQL actions from v3 (deprecated Node.js 20) to v4
- Remove invalid 'upload: true' input from init step
Fix secret-scanning.yml workflow (was rejected by GitHub with 'Invalid workflow file'):
- Fix cron syntax: ['0 6 * * 1'] -> '0 6 * * 1' (was a YAML sequence, not scalar)
- Fix non-existent action: upload-security-sarif@v3 -> upload-sarif@v4
- Pin trufflesecurity/trufflehog@main to @v3.97.4
- Replace invalid inputs (format/output/fail/only-failed) with extra_args
Fix error-level shellcheck issues in scripts:
- reset_perms/reset_perms 1.sh: add shebang (SC2148)
- raspberrypi/rasp_pi_install_apps.sh: fix shebang '!#' -> '#' (SC1035)
- mac-scripts/updates.sh: add shellcheck shell=sh directive (SC1071)
- mac-scripts/system_updates.sh: add shellcheck shell=sh directive (SC1071)
- observiem_agent/observiem-agent-install.sh: quote array expansions (SC2068), fix assignment spaces (SC2283)
* fix: TruffleHog --format flag removed (inferred from .sarif extension)
- Remove deprecated --format=sarif from extra_args (TruffleHog CLI
no longer supports this flag; format is inferred from file extension)
- Add continue-on-error: true to make scan non-blocking during rollout
(action hardcodes --fail which exits non-zero if secrets found)
* fix: TruffleHog CLI restructured — install binary directly
The trufflesecurity/trufflehog GitHub Action uses a Docker image whose
:latest CLI (v3.97.4) removed the 'scan' subcommand and the --format/--output
flags that the action's run.sh still passes. This caused both the TruffleHog
scan and the SARIF upload to fail.
Fix: install the TruffleHog binary directly from GitHub releases and use
the v3.97.4 CLI structure:
- trufflehog filesystem . --sarif --fail (no scan subcommand, no --format/--output)
- --sarif outputs SARIF to stdout; redirect to results.sarif
- --no-update skips network check (not needed in CI)
- continue-on-error keeps the step non-blocking during rollout
- upload-sarif only runs if results.sarif was created
---------
Co-authored-by: Jarvis <jarvis@wickedyoda.local>
raspberrypi
Overview
Scripts for Raspberry Pi setup, applications, and storage configuration.
Files
| Script | Description |
|---|---|
rasp_pi_install_apps.sh |
Install common applications |
raspberry_pi_fstab.sh |
Configure network mounts |
Media_to_ap-share.sh |
Sync media to Apple TV share |
public_to_usb.sh |
Transfer public files to USB |
Application Installation
rasp_pi_install_apps.sh
sudo ./raspberrypi/rasp_pi_install_apps.sh
Installs:
- Network tools: wireshark, nmap, openvpn, etherape, remmina
- Storage tools: cifs-utils, exfat-fuse
- Utilities: curl, git, python, unattended-upgrades, cron-apt
- Media server: ventz-media-pi (optional)
fstab Configuration
raspberry_pi_fstab.sh
sudo ./raspberrypi/raspberry_pi_fstab.sh
Configures:
/media/naspublic
/media/nasdownloadedmedia
/media/naspublic-share2
Media Sync
Media_to_ap-share.sh
sudo ./raspberrypi/Media_to_ap-share.sh
Syncs movies to Apple TV media share.
public_to_usb.sh
sudo ./raspberrypi/public_to_usb.sh
Transfers NAS public share to USB drive.
Raspberry Pi Tips
SD Card Wear
Consider using tmpfs for /var/log:
# Add to /etc/fstab
tmpfs /var/log tmpfs defaults,noatime,nosuid,size=100M 0 0
Network
- Use static IP for stable NAS mounts
- Consider WiFi power management:
sudo iw dev wlan0 set power_save off
Storage
- External USB drives should be labeled consistently
- Use UUIDs in fstab for reliability:
fstabwith UUID mounts more reliable than device paths
Quick Start
# 1. Update system
sudo apt update && sudo apt upgrade -y
# 2. Install applications
sudo ./raspberrypi/rasp_pi_install_apps.sh
# 3. Configure mounts
sudo ./raspberrypi/raspberry_pi_fstab.sh
# 4. Reboot
sudo reboot