Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit e4aa6a1

Browse files
authored
Update orchestrator.py
1 parent e4d2ed6 commit e4aa6a1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

entrypoint/entrypoint/orchestrator.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import boto3
33
import json
4-
from entrypoint import pkg_vuln
4+
from entrypoint import pkg_vuln, executor
55

66
def execute(args) -> int:
77
logging.info("Starting the Amazon Inspector EC2 scan results fetch process")
@@ -23,3 +23,11 @@ def execute(args) -> int:
2323
except Exception as e:
2424
logging.error(f"Failed to fetch findings: {e}")
2525
return 1
26+
27+
def invoke_aws_command(args) -> int:
28+
"""
29+
Invokes an AWS CLI command using the executor.
30+
:param args: The arguments for the AWS CLI command
31+
:return: The exit code of the command
32+
"""
33+
return executor.invoke_command('aws', args)

0 commit comments

Comments
 (0)