From c4f201fac9fcf699b87d03c8d8201803afe6ea5f Mon Sep 17 00:00:00 2001 From: flacatus Date: Wed, 5 Feb 2025 09:40:55 +0100 Subject: [PATCH] fix: Increase computeResources for SL go scanning and also enable scanning debug mode --- .../0.1/sealights-go-oci-ta.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/task/sealights-go-oci-ta/0.1/sealights-go-oci-ta.yaml b/task/sealights-go-oci-ta/0.1/sealights-go-oci-ta.yaml index 5f9d8c4f7d..3a25acefa0 100644 --- a/task/sealights-go-oci-ta/0.1/sealights-go-oci-ta.yaml +++ b/task/sealights-go-oci-ta/0.1/sealights-go-oci-ta.yaml @@ -73,6 +73,10 @@ spec: - name: oci-storage description: The OCI repository where the Trusted Artifacts are stored. type: string + - name: debug + default: "false" + description: Enable debug for Sealights scanning. + type: string volumes: - name: sealights-credentials secret: @@ -95,11 +99,11 @@ spec: image: registry.access.redhat.com/ubi8/go-toolset:$(params.go-version) computeResources: limits: - memory: 512Mi - cpu: 500m + memory: 4Gi + cpu: "1" requests: - cpu: 100m - memory: 256Mi + cpu: 200m + memory: 512Mi workingDir: /var/workdir/source securityContext: runAsUser: 0 @@ -118,6 +122,8 @@ spec: value: $(params.pull-request-number) - name: TARGET_BRANCH value: $(params.target-branch) + - name: DEBUG + value: $(params.debug) - name: TEST_EVENT valueFrom: fieldRef: @@ -155,7 +161,7 @@ spec: fi slcli scan --packages-excluded "${PACKAGES_EXCLUDED_ENUM}" --bsid buildSessionId.txt --path-to-scanner /usr/local/bin/slgoagent \ - --workspacepath ./ --scm git --scmProvider "${SCM_PROVIDER}" --scmVersion "0" --scmBaseUrl "${REPOSITORY_URL}" + --workspacepath ./ --scm git --scmProvider "${SCM_PROVIDER}" --scmVersion "0" --scmBaseUrl "${REPOSITORY_URL}" --debug="${DEBUG}" echo -n "$(cat buildSessionId.txt)" > "$(results.sealights-bsid.path)" echo -n "$BUILD_NAME" > "$(results.sealights-build-name.path)"