fix: address foundation scrutiny findings
- Make CI smoke commands Windows-aware by using OS-neutral cargo run invocations - Replace masked negative smoke checks (|| true) with explicit non-zero assertions - Remove Cargo.lock from .gitignore and track for binary reproducibility - Strengthen secret redaction to eliminate stable first/last character leakage - Remove readme field from Cargo.toml that referenced a missing README.md
This commit is contained in:
@@ -92,19 +92,26 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo build --release
|
||||
# OS-neutral cargo-based smoke tests avoid path issues on Windows (.exe vs no extension)
|
||||
- name: rustunnel --help
|
||||
run: target/release/rustunnel --help
|
||||
run: cargo run --release -- --help
|
||||
- name: rustunnel version
|
||||
run: target/release/rustunnel version
|
||||
run: cargo run --release -- version
|
||||
- name: rustunnel listen --help
|
||||
run: target/release/rustunnel listen --help
|
||||
run: cargo run --release -- listen --help
|
||||
- name: rustunnel connect --help
|
||||
run: target/release/rustunnel connect --help
|
||||
run: cargo run --release -- connect --help
|
||||
- name: rustunnel generate --help
|
||||
run: target/release/rustunnel generate --help
|
||||
run: cargo run --release -- generate --help
|
||||
- name: Invalid command fails
|
||||
run: target/release/rustunnel invalid-cmd || true
|
||||
shell: bash
|
||||
run: |
|
||||
if cargo run --release -- invalid-cmd 2>&1; then
|
||||
echo "ERROR: invalid command should have failed"
|
||||
exit 1
|
||||
fi
|
||||
- name: Invalid port fails
|
||||
run: target/release/rustunnel listen --listen localhost:bad --cert x --key x --ca-cert x --auth-token x || true
|
||||
shell: bash
|
||||
run: |
|
||||
if cargo run --release -- listen --listen localhost:bad --cert x --key x --ca-cert x --auth-token x 2>&1; then
|
||||
echo "ERROR: invalid port should have failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user