Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .tekton/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,54 @@ spec:

echo "--- INTEGRATION TESTS FINISHED SUCCESSFULLY ---"

finally:
- name: post-integration-evaluation
when:
- input: $(tasks.integration-test.status)
operator: in
values:
- Succeeded
- Failed
params:
- name: INTEGRATION_TEST_STATUS
value: $(tasks.integration-test.status)
taskSpec:
params:
- name: INTEGRATION_TEST_STATUS
type: string
steps:
- name: report
image: registry.access.redhat.com/ubi9/python-312:9.6
workingDir: $(workspaces.source.path)
env:
- name: EXPLOIT_IQ_API_BASE
valueFrom:
configMapKeyRef:
name: evaluation-config
key: EXPLOIT_IQ_API_BASE
- name: EXPLOIT_IQ_API_TOKEN
valueFrom:
secretKeyRef:
name: evaluation-secret
key: EXPLOIT_IQ_API_TOKEN
- name: NGC_API_KEY
valueFrom:
secretKeyRef:
name: evaluation-secret
key: NGC_API_KEY
script: |
#!/bin/bash
set -e
echo "--- POST INTEGRATION REPORT ---"
echo "Integration test status: $(params.INTEGRATION_TEST_STATUS)"
#check if the run_cve_evaluation.py file is present
if [ -f run_cve_evaluation.py ]; then
echo "run_cve_evaluation.py file found"
python3 run_cve_evaluation.py --mode api --stages all --submit
else
echo "run_cve_evaluation.py file not found"
fi
echo "--- POST INTEGRATION REPORT DONE ---"

workspaces:
- name: source
Expand Down
2 changes: 1 addition & 1 deletion src/vuln_analysis/tools/lexical_full_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

logger = LoggingFactory.get_agent_logger(__name__)


#add documentation for the tool
class LexicalSearchToolConfig(FunctionBaseConfig, name=LEXICAL_CODE_SEARCH):
"""
Lexical search tool used to search source code.
Expand Down
Loading