mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-22 15:42:27 +02:00
- Add worker eval command for distributed function execution with Redis hooks registration - Add worker set command to update worker fields (alias, public-ip, ssh-enabled, ssh-keys-path) - Enhance worker status with JSON output, search filtering, and column selection (--columns, --exclude-columns, --search) - Add --keep-setting flag to install base/validate commands to preserve osm-settings.yaml after base installation - Fix binary installation in Nix: replace CopyInstalledBinaryToFolder with SymlinkInstalledBinaryToFolder - Add --clean-ws flag to db clean command for removing workspace data - Add HooksEnabled field to Run records when creating runs from CLI and API - Add comprehensive test coverage for hook execution (pre/post hooks, execution order, failure handling) - Add test coverage for worker commands (eval, set, status with JSON) and db clean operations - Improve usage documentation for worker subcommands and db operations
34 lines
755 B
YAML
34 lines
755 B
YAML
name: test-hooks-module
|
|
kind: module
|
|
description: Test module with pre/post scan hooks
|
|
tags: test,hooks
|
|
|
|
params:
|
|
- name: target
|
|
required: true
|
|
|
|
hooks:
|
|
pre_scan_steps:
|
|
- name: pre-start-log
|
|
type: bash
|
|
command: echo "[HOOK-PRE] Starting scan for {{Target}}"
|
|
- name: pre-setup
|
|
type: bash
|
|
command: echo "[HOOK-PRE] Setup complete"
|
|
post_scan_steps:
|
|
- name: post-cleanup
|
|
type: bash
|
|
command: echo "[HOOK-POST] Cleaning up for {{Target}}"
|
|
- name: post-finish-log
|
|
type: bash
|
|
command: echo "[HOOK-POST] Scan finished"
|
|
|
|
steps:
|
|
- name: main-step
|
|
type: bash
|
|
command: echo "[MAIN] Scanning {{Target}}"
|
|
|
|
- name: second-step
|
|
type: bash
|
|
command: echo "[MAIN] Analysis complete"
|