mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-23 16:12:29 +02:00
- Update Next.js build IDs and chunk hashes in workflow upload static files - Replace deprecated 'input' field syntax with new exports-style variables in event triggers (e.g., 'Target: event_data.value' instead of type/field/name) - Simplify parameter override syntax in test workflows (remove nested 'default' structure)
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: test-event-input
|
|
kind: module
|
|
description: Test new event input syntax (exports-style Vars)
|
|
|
|
triggers:
|
|
- name: on-asset-vars
|
|
on: event
|
|
event:
|
|
# topic: "test.asset.vars"
|
|
topic: "*"
|
|
input:
|
|
# New exports-style syntax: variable_name: expression
|
|
# osmedeus eval 'generate_event("hackerone.com", "test.asset.vars", "cli", "subdomain", "docs.hackerone.com")'
|
|
Target: event_data.value
|
|
asset_type: event.type
|
|
source: event.source
|
|
description: trim(event_data.desc)
|
|
enabled: true
|
|
|
|
params:
|
|
- name: Target
|
|
required: true
|
|
|
|
steps:
|
|
- name: verify-vars
|
|
type: bash
|
|
commands:
|
|
- 'echo "target={{target}}"'
|
|
- 'echo "Target={{Target}}"'
|
|
- 'echo "TargetSpace={{TargetSpace}}"'
|
|
- 'echo "asset_type={{asset_type}}"'
|
|
- 'echo "source={{source}}"'
|
|
- 'echo "description={{description}}"'
|
|
|
|
- name: echo-envelope
|
|
type: bash
|
|
commands:
|
|
- 'echo "Full envelope: {{EventEnvelope}}"'
|
|
- 'echo "Topic: {{EventTopic}}"'
|
|
- 'echo "Source: {{EventSource}}"'
|
|
- 'echo "DataType: {{EventDataType}}"'
|
|
- 'echo "Timestamp: {{EventTimestamp}}"'
|
|
- 'echo "Data: {{EventData}}"' |