Repository navigation
Security hardening, CI, and show-ops features #5
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
61a74b8
Add security hardening, CI, and show-ops features
SALhik fb50315
Merge main: this branch's implementation supersedes PR #4's parallel …
SALhik 209110b
Graft server/timeutil.py from main; refactor now_iso() into showlog.py
SALhik 0cd857f
Add report_to_csv and report_to_html to showreport; wire format=csv|html
SALhik 48f82a9
Apply three hardening fixes: run.bat guards, ws.py null coercion, JS …
SALhik a432517
Update docs: mention csv/html report formats and timeutil
SALhik d934866
Fix double-escaped summary cells in HTML show report
SALhik d3ffc7b
Address CodeRabbit review: snapshot migration, CSV LF guard, classLis…
SALhik 2311e27
Make audio re-arm listener persistent; drop dead _PAIRS constant
SALhik e9bf428
Send log/report password in header, not URL query string
SALhik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # 3.10 is the documented minimum, 3.12 the development default | ||
| python-version: ["3.10", "3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| # read-only workflow: don't leave the token in .git/config | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: pip | ||
| - name: Install dependencies | ||
| run: python -m pip install -r requirements.txt ruff pytest | ||
| - name: Lint | ||
| run: ruff check . | ||
| - name: Test | ||
| run: python -m pytest tests/test_cuelight.py -v | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,22 @@ | ||
| @echo off | ||
| rem One-click CueLight launcher for Windows. | ||
| rem Creates a virtualenv on first run, installs dependencies, starts the server. | ||
| rem One-command CueLight launcher (Windows). Double-click or run: run.bat [port] | ||
| cd /d "%~dp0" | ||
|
|
||
| where python >nul 2>nul | ||
| if errorlevel 1 ( | ||
| echo Python 3 is not installed. Get it from https://www.python.org/downloads/ | ||
| echo Make sure to tick "Add Python to PATH" in the installer. | ||
| echo Python 3 is required. Install it from https://www.python.org/downloads/ | ||
| echo ^(tick "Add python.exe to PATH" during install^) | ||
| pause | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| if not exist ".venv" ( | ||
| if not exist .venv ( | ||
| echo First run: setting up, this takes a minute... | ||
| python -m venv .venv | ||
| if errorlevel 1 (echo Failed to create the virtual environment. & pause & exit /b 1) | ||
| ) | ||
|
|
||
| call .venv\Scripts\activate.bat | ||
| pip install -q -r requirements.txt | ||
| .venv\Scripts\pip install --quiet -r requirements.txt | ||
| if errorlevel 1 (echo Failed to install dependencies. Check your internet connection and try again. & pause & exit /b 1) | ||
| python -m server | ||
| .venv\Scripts\python -m server %* | ||
| pause |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.