Add Wazuh syslog alert sink #52
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
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| backend: | |
| name: backend (.NET 10) | |
| runs-on: ubuntu-latest | |
| services: | |
| sqlserver: | |
| image: mcr.microsoft.com/mssql/server:2022-latest | |
| env: | |
| ACCEPT_EULA: "Y" | |
| MSSQL_SA_PASSWORD: "DevPassw0rd!" | |
| MSSQL_PID: "Developer" | |
| ports: | |
| - 1433:1433 | |
| options: >- | |
| --health-cmd "/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P 'DevPassw0rd!' -Q 'SELECT 1' || exit 1" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| --health-start-period 30s | |
| env: | |
| ConnectionStrings__Default: "Server=localhost,1433;Database=TawnyCi;User Id=sa;Password=DevPassw0rd!;TrustServerCertificate=True;Encrypt=False" | |
| Tawny__AgentJwt__SigningKeyPem: "" | |
| Tawny__AgentJwt__RequireConfiguredSigningKey: "false" | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - run: dotnet restore | |
| - run: dotnet build --configuration Release --no-restore | |
| - name: apply migrations to SQL Server | |
| run: | | |
| dotnet tool install --global dotnet-ef --version 10.0.0 | |
| ~/.dotnet/tools/dotnet-ef database update --project src/Tawny.Infrastructure --startup-project src/Tawny.Api | |
| - run: dotnet test --configuration Release --no-build --verbosity normal | |
| web: | |
| name: web (Next.js 16) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: web/pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm lint | |
| - run: pnpm typecheck | |
| - run: pnpm build | |
| agent: | |
| name: agent (Zig) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: agent | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: mlugg/setup-zig@v1 | |
| with: | |
| version: 0.14.0 | |
| - run: zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseSmall | |
| - run: zig build -Dtarget=x86_64-linux-gnu -Doptimize=ReleaseSmall | |
| - run: zig build -Dtarget=aarch64-linux-gnu -Doptimize=ReleaseSmall | |
| - run: zig build -Dtarget=aarch64-macos -Doptimize=ReleaseSmall | |
| - run: zig build -Dtarget=x86_64-macos -Doptimize=ReleaseSmall | |
| - run: zig build test | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: tawny-agent-builds | |
| path: agent/zig-out/ | |
| retention-days: 7 |