mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 04:34:08 +01:00
- Go 1.27, Bibliotheken nachgezogen (x/crypto 0.59, lipgloss 2.1, ultraviolet, x/sys, ristretto255 0.2) - PuTTY-Import ohne veraltete ECDSA-API; staticcheck sauber und als CI-Job lint - checksums.txt nennt die Version und ist mit signiert (update.SumsVersion); release.yml in build/sign/publish getrennt, Schlüssel nur im Job sign - Release mit Herkunftsnachweis (attest-build-provenance) und SBOM (CycloneDX); Codesignatur Windows/macOS vorbereitet (nur mit Secrets, docs/codesignatur.md) - Alte SSH-Verfahren: gelber Hinweis beim Verbinden, Host-Übersicht zeigt SSH-Verfahren / quantensicher - Vermittler und LAN-Teilen nur noch TLS 1.3 - KI: response_format json_object für Ziel/Agent/Plan, Prompt-Caching für Claude, Claude ab 4.7 ohne temperature, NoThink je Modell (thinking disabled bzw. effort low), Ablehnung (refusal) als Meldung, abgelehnte Felder je Endpunkt gemerkt - Vorbelegung qwen3:8b / gpt-5-mini - MCP 2026-07-28 (server/discover, _meta-Version, resultType), initialize für alte Clients Claude-Session: https://claude.ai/code/session_018i4GUhLGo5pLYYKwLBkYN9 Co-authored-by: Claude <noreply@anthropic.com>
137 lines
5.5 KiB
YAML
137 lines
5.5 KiB
YAML
# Pull Requests: Tests und Cross-Compile für alle Zielplattformen.
|
|
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
# neuester Patch von Go 1.27: Sicherheitskorrekturen der Standardbibliothek
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: go vet ./... && go test ./...
|
|
- name: Terminal-Emulator (eigene Kopie in third_party/vt)
|
|
run: cd third_party/vt && go test ./...
|
|
- name: ANSI-Parser (eigene Kopie in third_party/ansi)
|
|
run: cd third_party/ansi && go test ./...
|
|
- name: Lasttest mit 1000 Hosts
|
|
run: make loadtest
|
|
# Bildschirm-Tests: abweichende Bilder zum Ansehen hochladen
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
if: failure()
|
|
with:
|
|
name: golden-actual
|
|
path: internal/ui/testdata/golden-actual/
|
|
if-no-files-found: ignore
|
|
- name: Cross-Compile
|
|
run: |
|
|
for t in windows/arm64 windows/386 windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 linux/arm linux/riscv64; do
|
|
CGO_ENABLED=0 GOARM=7 GOOS=${t%/*} GOARCH=${t#*/} go build -o /dev/null ./cmd/sshtermy
|
|
done
|
|
# Zusehen im Browser (WebAssembly)
|
|
GOOS=js GOARCH=wasm go build -o /dev/null ./cmd/zusehen-wasm
|
|
|
|
# Datenrennen (Terminal-Emulator, Vermittler, SSH) früh finden
|
|
race:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
# neuester Patch von Go 1.27: Sicherheitskorrekturen der Standardbibliothek
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: go test -race ./...
|
|
|
|
# Statische Prüfung: tote Funktionen, veraltete APIs (z. B. Krypto), immer
|
|
# wahre Bedingungen. Abweichungen von der Vorgabe in staticcheck.conf.
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: go run honnef.co/go/tools/cmd/staticcheck@v0.8.2 ./...
|
|
- name: Bibliotheken aktuell? (nur Hinweis, Dependabot macht die PRs)
|
|
run: |
|
|
OUT="$(go list -m -u -f '{{if and .Update (not .Indirect)}}{{.Path}} {{.Version}} → {{.Update.Version}}{{end}}' all)"
|
|
[ -z "$OUT" ] || echo "::notice title=Neuere Bibliotheken::$(echo "$OUT" | tr '\n' ';')"
|
|
|
|
# Tests auch auf echtem Windows und macOS (ConPTY, DPAPI, Schlüsselbund, Pfade)
|
|
platforms:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: go test ./...
|
|
- run: cd third_party/vt && go test ./...
|
|
- run: cd third_party/ansi && go test ./...
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
if: failure()
|
|
with:
|
|
name: golden-actual-${{ matrix.os }}
|
|
path: internal/ui/testdata/golden-actual/
|
|
if-no-files-found: ignore
|
|
|
|
# Bekannte Sicherheitslücken in Go und allen Bibliotheken, die wirklich aufgerufen werden
|
|
vuln:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
|
|
|
|
# Parser für Daten von fremden Geräten kurz mit Zufallsdaten beschießen
|
|
fuzz:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: "1.27.x"
|
|
check-latest: true
|
|
- run: FUZZTIME=15s tools/fuzz/run.sh
|
|
- name: ANSI-Parser (third_party/ansi)
|
|
run: cd third_party/ansi && go test -run '^$' -fuzz '^FuzzDecodeSequence$' -fuzztime 15s .
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
if: failure()
|
|
with:
|
|
name: fuzz-funde
|
|
path: internal/**/testdata/fuzz/
|
|
if-no-files-found: ignore
|
|
|
|
packaging:
|
|
# ubuntu-latest (26.04) holte apt-utils am 2026-11-11 stundenlang nur von
|
|
# security.ubuntu.com, das der Runner nicht auflösen konnte.
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
# Paketquellen können kurz nicht erreichbar sein (DNS beim Runner):
|
|
# Liste auffrischen und bis zu dreimal versuchen.
|
|
- run: |
|
|
if command -v apt-ftparchive >/dev/null && python3 -c 'import yaml' 2>/dev/null; then exit 0; fi
|
|
for i in 1 2 3; do
|
|
sudo apt-get update -qq || true
|
|
sudo apt-get install -y -qq apt-utils python3-yaml >/dev/null && exit 0
|
|
sleep $((i * 10))
|
|
done
|
|
exit 1
|
|
- run: packaging/check.sh
|