Adopt OCSentinel script layout and add Gitea workflow
Some checks failed
OfficeCom Sentinel Client / build-client (push) Has been cancelled

This commit is contained in:
OfficeCom Codex
2026-07-17 00:50:26 +02:00
parent 7cdc0395c4
commit 85e394f647
23 changed files with 1124 additions and 920 deletions

View File

@@ -1,12 +1,12 @@
# AttackTracer Ninja V2 Deployment
# OfficeCom Sentinel Deployment
## Goal
Deploy and update the endpoint client through NinjaOne while hosting release artifacts in GitLab.
Deploy and update the endpoint client through NinjaOne while hosting release artifacts in Gitea.
## Release assets
Each GitLab release should publish:
Each Gitea release should publish:
- `OCSentinelClient-win-x64.zip`
- `OCSentinelClient-win-x64.zip.sha256`
@@ -17,7 +17,7 @@ Build these locally with:
```powershell
powershell -ExecutionPolicy Bypass -File .\build\build-client-package.ps1
powershell -ExecutionPolicy Bypass -File .\build\build-release-manifest.ps1 `
-ArtifactUrl "https://gitlab.example.com/group/project/-/releases/v2.0.0/downloads/OCSentinelClient-win-x64.zip"
-ArtifactUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v2.0.0/OCSentinelClient-win-x64.zip"
```
See example manifest:
@@ -42,7 +42,7 @@ Recommended NinjaOne task:
```powershell
& "C:\Program Files\OCSentinel\scripts\update-ocsentinel.ps1" `
-ManifestUrl "https://gitlab.example.com/group/project/-/releases/permalink/latest/downloads/version.json" `
-ManifestUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v2.0.0/version.json" `
-Force
```
@@ -54,7 +54,7 @@ Recommended scheduled task command:
```powershell
& "C:\Program Files\OCSentinel\scripts\update-ocsentinel.ps1" `
-ManifestUrl "https://gitlab.example.com/group/project/-/releases/permalink/latest/downloads/version.json"
-ManifestUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v2.0.0/version.json"
```
## Behavior
@@ -88,12 +88,12 @@ Recommended runtime task:
```powershell
& "C:\Program Files\OCSentinel\scripts\run-ocsentinel-monitor.ps1" `
-Mode status `
-OutputPath "..\reports\attacktracer-summary.json"
-OutputPath "..\reports\ocsentinel-summary.json"
```
Upload is enabled automatically when:
- `config\attacktracer-client.json` exists
- `config\ocsentinel-client.json` exists
- the protected secret file exists
Otherwise the client falls back to local scan behavior.