Skip to content
Draft
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
22 changes: 22 additions & 0 deletions .tekton/cli-main-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,28 @@ spec:
operator: in
values:
- "false"
- name: roxctl-scan
params:
- name: image-url
value: $(tasks.build-image-index.results.IMAGE_URL)
- name: image-digest
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
runAfter:
- build-image-index
taskRef:
params:
- name: url
value: https://github.com/cuipinghuo/konflux-test-tasks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[critical] Supply Chain Integrity

The new roxctl-scan task uses a git resolver pointing to a personal GitHub repository (https://github.com/cuipinghuo/konflux-test-tasks) on a mutable feature branch (stoneintg-1755-fix-roxctl-oci-attach), whereas every other task in this pipeline (17 total) uses the bundles resolver with SHA256 digest-pinned references from quay.io/konflux-ci/tekton-catalog/. This introduces supply chain risks: (1) task definition fetched from a personal fork rather than an official catalog, (2) mutable branch reference that can be force-pushed or deleted, (3) weaker access controls on personal repo, (4) task executes in CI pipeline security context with access to secrets and workspaces. While the PR is draft/DNM, these risks are real if the PR is merged as-is or if someone copies this pattern.

Suggested fix: Use the bundles resolver with a SHA256 digest-pinned reference from the official quay.io/konflux-ci/tekton-catalog/ registry. If the task is not yet available in the catalog, keep the PR blocked until published, or at minimum pin to a specific commit SHA in the git resolver rather than a branch name.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] Description-Diff Mismatch

The PR body claims the task is 'Resolved via Tekton bundle at quay.io/konflux-ci/tekton-catalog/task-roxctl-scan:0.1 with pinned digest', but the actual diff uses resolver: git pointing to https://github.com/cuipinghuo/konflux-test-tasks on a feature branch. This mismatch could mislead reviewers into believing the task follows the established pinned-bundle pattern.

Suggested fix: Update the PR description to accurately reflect that the implementation uses a git resolver to a personal fork, not a bundle resolver with pinned digest.

- name: revision
value: stoneintg-1755-fix-roxctl-oci-attach
- name: pathInRepo
value: task/roxctl-scan/0.1/roxctl-scan.yaml
resolver: git
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
workspaces:
- name: git-auth
optional: true
Expand Down
Loading