Skip to content

Commit 0dfd83e

Browse files
committed
feat: add Beacon and Multi-Event capabilities
Users can now specify the Beacon and the Event they want to run the scans on, thus enabling CI/CD scanning of internal assets and multiple machine events. BREAKING: New multi-event logic may break existing environments where event disambiguation might be required.
1 parent 77fe9c8 commit 0dfd83e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

action.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'Ethiack Job Manager Action'
22
description: 'Integrates Ethiack Job Manager with GitHub Actions for managing Artiacker jobs.'
3-
author: 'Ethiack, Lda.'
3+
author: 'Ethiack, Lda'
44

55
branding:
66
icon: 'search'
@@ -18,6 +18,14 @@ inputs:
1818
description: 'The URL of the target service. Required for commands "launch", and "check".'
1919
required: false
2020
default: ''
21+
beacon_id:
22+
description: 'The beacon ID of the service. Optional for commands "launch" and "check".'
23+
required: false
24+
default: ''
25+
event_slug:
26+
description: 'The event slug of the service. Optional for commands "launch" and "check".'
27+
required: false
28+
default: ''
2129
args:
2230
description: 'The arguments to pass to the job.'
2331
required: false
@@ -68,7 +76,14 @@ runs:
6876
exit 1
6977
fi
7078
fi
71-
79+
## Add beacon_id input if provided for launch or check
80+
if ([ "${{ inputs.command }}" = "launch" ] || [ "${{ inputs.command }}" = "check" ]) && [ -n "${{ inputs.beacon_id }}" ]; then
81+
COMMAND="$COMMAND --beacon-id ${{ inputs.beacon_id }}"
82+
fi
83+
## Add event_slug input if provided for launch or check
84+
if ([ "${{ inputs.command }}" = "launch" ] || [ "${{ inputs.command }}" = "check" ]) && [ -n "${{ inputs.event_slug }}" ]; then
85+
COMMAND="$COMMAND --event-slug ${{ inputs.event_slug }}"
86+
fi
7287
## Add uuid input if needed
7388
if [ "${{ inputs.command }}" = "cancel" ] || [ "${{ inputs.command }}" = "info" ] || [ "${{ inputs.command }}" = "status" ] || [ "${{ inputs.command }}" = "success" ] || [ "${{ inputs.command }}" = "await" ]; then
7489
if [ -n "${{ inputs.uuid }}" ]; then

0 commit comments

Comments
 (0)