diff --git a/.tekton/on-cm-runner.yaml b/.tekton/on-cm-runner.yaml index 27d0f667..2907d309 100644 --- a/.tekton/on-cm-runner.yaml +++ b/.tekton/on-cm-runner.yaml @@ -521,6 +521,47 @@ spec: echo "--- Release Process Complete ---" + finally: + - name: post-cm-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: quay.io/ecosystem-appeng/cve-evaluation:latest + 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 + args: + - --mode + - api + - --stages + - all + - --submit + # ------------------------------------------------ # WORKSPACE BINDINGS # ------------------------------------------------ diff --git a/.tekton/on-pull-request.yaml b/.tekton/on-pull-request.yaml index c9650198..d9c78a5d 100644 --- a/.tekton/on-pull-request.yaml +++ b/.tekton/on-pull-request.yaml @@ -251,6 +251,7 @@ spec: # This is handled in the Makefile's lint-pr target and should be reverted after migration. make lint-pr TARGET_BRANCH=$TARGET_BRANCH_NAME + print_banner "RUNNING UNIT TESTS" make test-unit PYTEST_OPTS="--log-cli-level=DEBUG" @@ -480,6 +481,47 @@ 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: quay.io/ecosystem-appeng/cve-evaluation:llama_prompt + 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 + args: + - --mode + - api + - --stages + - all + - --submit + workspaces: - name: source diff --git a/src/vuln_analysis/tools/lexical_full_search.py b/src/vuln_analysis/tools/lexical_full_search.py index 0b24fcc1..1bb6cf21 100644 --- a/src/vuln_analysis/tools/lexical_full_search.py +++ b/src/vuln_analysis/tools/lexical_full_search.py @@ -27,7 +27,7 @@ logger = LoggingFactory.get_agent_logger(__name__) - +#add documentation for the tool sort main reasults to dependencies ,next class LexicalSearchToolConfig(FunctionBaseConfig, name=LEXICAL_CODE_SEARCH): """ Lexical search tool used to search source code.