Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update more operators for test #9

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

obochan-rh
Copy link
Contributor

No description provided.

# If the result needs to be sent to DefectDojo, this must be a SARIF format file
results: "/tmp/oobtkube.sarif.json" # if None or "*stdout", the command's standard output is selected
# toolDir: scanners/generic/tools
#inline: "python3 oobtkube.py -d 120 -p <port> -i <ipaddr> -f /test/oobt_test_data/cr_example.yaml -o /tmp/oobtkube.sarif.json"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address these linter errors.

ip_addresses = re.findall(r'10.64.\d+\.\d+', ip_output)

# Currently return the first IP address
# TODO: fix if there are multiple IP addresses and it causes an issue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this error is relevant, perhaps its worth to fix it now.

print(command)

process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
stdout, stderr = process.communicate()
Copy link
Contributor

@shaior shaior Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe its better to print the stdout here, and check the errors.

@shaior
Copy link
Contributor

shaior commented Sep 30, 2024

This PR is approved just for testing, we agreed @obochan-rh to address all the relevant comments
and fixes once this is verified to be working.

@shaior
Copy link
Contributor

shaior commented Sep 30, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2024
Copy link
Contributor

@shaior shaior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is approved just for testing, we agreed @obochan-rh to address all the relevant comments and fixes once this is verified to be working.

Copy link

openshift-ci bot commented Sep 30, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: obochan-rh, shaior

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@shaior shaior merged commit 50006d4 into openshift-kni:main Sep 30, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants