Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(STONEINTG-1377): rox-task-init#30

Open
jsztuka wants to merge 1 commit into
mainjsztuka/devfile-sample-java-springboot-basic:mainfrom
rox-task-init-1377jsztuka/devfile-sample-java-springboot-basic:rox-task-init-1377Copy head branch name to clipboard
Open

feat(STONEINTG-1377): rox-task-init#30
jsztuka wants to merge 1 commit into
mainjsztuka/devfile-sample-java-springboot-basic:mainfrom
rox-task-init-1377jsztuka/devfile-sample-java-springboot-basic:rox-task-init-1377Copy head branch name to clipboard

Conversation

@jsztuka

@jsztuka jsztuka commented Dec 11, 2025

Copy link
Copy Markdown
Owner

Init task for roxctl scan.

Comment thread rox/rox-sample-init.yaml
if [ ! -s /tekton/home/rox-output.json ]; then
echo "Failed to scan image using Roxctl"
note="Task $(context.task.name) failed: Failed to scan image using Roxctl image: $IMAGE For details, check Tekton task log."
ERROR_OUTPUT=$note

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
ERROR_OUTPUT=$note
ERROR_OUTPUT=$(make_result_json -r "ERROR" -t "$note")

@jsztuka jsztuka Dec 12, 2025

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I would love to do so, unfortunately roxctl image does not have utils.sh :(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can this type of ERROR_OUTPUT without result be handled by EC verify task. I am not sure.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I think you are correct, the error does not get reflected in the final result log, it is just printed out and being everwritten by next result that uses make_result_json.
Do we have idea about workaround for this?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Can we keep the simple echo message informing about the fact that scan did not run properly wihtin a step, followed by the error output from the next step that wich catch that output file is empty and provide error message to the result from there?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Important note, the result output is not evaluated by EC anymore.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you may generate the ERROR_OUTPUT as we did without utils.sh script as a workaround since it doesn't exist in this image.

@jsztuka

jsztuka commented Dec 12, 2025

Copy link
Copy Markdown
Owner Author

Will remove the default params.

@jsztuka jsztuka force-pushed the rox-task-init-1377 branch 2 times, most recently from 76b1f9b to cbef327 Compare December 12, 2025 15:12
@jsztuka jsztuka force-pushed the rox-task-init-1377 branch 4 times, most recently from 1f4e939 to 41b6e3c Compare December 12, 2025 15:37
Comment thread rox/rox-sample-init.yaml Outdated
- --token-file=/service-account-token/token
- name: get-image-manifests
image: quay.io/konflux-ci/konflux-test:v1.4.43@sha256:0bcc59de96bdc6f989d5c06d142d674da5d495c450a760fdd7d6fd333433342e
# the clair-in-ci image neither has skopeo or jq installed. Hence, we create an extra step to get the image manifest digests

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We'll probably need to update this comment to mention roxctl instead of clair

@jsztuka

jsztuka commented Dec 15, 2025

Copy link
Copy Markdown
Owner Author

I tested the task on the prod, obviously with different central link.
jsztuka/test-project#3
Successfully.

Comment thread rox/rox-sample-init.yaml
value: Tekton
script: |
#!/usr/bin/env bash
roxctl image scan --insecure-skip-tls-verify=$INSECURE --output=$OUTPUT --image=$IMAGE | tee /tekton/home/rox-output.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I just realize should we scan the different arches for the image as we do in clair-scan?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

We are not currently scanning multiple arches using roxctl at the moment. This would be covered in upcoming stories most probably.

Comment thread rox/rox-sample-init.yaml Outdated
app.kubernetes.io/version: "0.1"
spec:
description: >-
Exchanges a kubernetes service account token against a Red Hat Advanced Cluster Security short-lived token.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this the expected description for the task? Or should be for roxctl scan something...

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Updated.

@jsztuka

jsztuka commented Dec 16, 2025

Copy link
Copy Markdown
Owner Author

New version with addressed feedback is created in konflux-test-tasks repo.
If I can ask to move the discussion to konflux-ci/konflux-test-tasks#248.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.