Skip to content

Commit

Permalink
fix: Increase computeResources for SL go scanning and also enable sca…
Browse files Browse the repository at this point in the history
…nning debug mode
  • Loading branch information
flacatus committed Feb 5, 2025
1 parent 2b9bac9 commit c4f201f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions task/sealights-go-oci-ta/0.1/sealights-go-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit c4f201f

Please sign in to comment.