- New "mode" setting: "netbox" (default, unchanged), "listen" (no NetBox access needed; the inventory is served on a TCP port for the NetBox Synchronizer desktop app) or "both" - Listen protocol v1: HMAC-SHA256 signed requests with nonce and timestamp, AES-256-GCM encrypted inventory, optional allowed_networks; the inventory has the shape of the desktop app's WinRM scan - New options --serve, --print and --version - install.ps1 sets up the listener task (at startup, restarted on failure) and the firewall rule for listen mode, removes what a changed mode no longer needs and stays idempotent - New gpo-startup.ps1 for Group Policy startup scripts: installs or updates from a share only when agent.exe or config.json changed - README, messages and scripts in English Co-Authored-By: Claude Opus 5.5 <[email protected]>
31 lines
756 B
YAML
31 lines
756 B
YAML
name: Build Windows agent
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ['v*']
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
runtime: [win-x64, win-arm64]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
- shell: pwsh
|
|
run: ./scripts/build.ps1 -Runtime ${{ matrix.runtime }}
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: agent-${{ matrix.runtime }}
|
|
path: |
|
|
dist/${{ matrix.runtime }}/agent.exe
|
|
config.example.json
|
|
config.listen.example.json
|
|
scripts/install.ps1
|
|
scripts/uninstall.ps1
|
|
scripts/gpo-startup.ps1
|
|
|