Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend the sast-coverity-check CI task to support buildful scanning #1653

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

kdudka
Copy link
Contributor

@kdudka kdudka commented Nov 26, 2024

@kdudka kdudka force-pushed the cov-bf branch 10 times, most recently from d9f50ab to d105ef6 Compare December 2, 2024 15:02
@kdudka kdudka force-pushed the cov-bf branch 4 times, most recently from 01c1285 to 31c6f24 Compare December 12, 2024 09:54
@kdudka
Copy link
Contributor Author

kdudka commented Dec 12, 2024

/ok-to-test

kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
They cause the CI to be red on tasks derived from the buildah task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
It was required but not used for anything.  Also the parameters set
in the build template were not used by the coverity-availability-check
task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
... to make the interface compatible with the `build-container` task

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
... from the build-container task.  The `hack/generate-sast-tasks.sh`
script can be used to rebuild `sast-coverity-check.yaml`.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
They cause the CI to be red on tasks derived from the buildah task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
It was required but not used for anything.  Also the parameters set
in the build template were not used by the coverity-availability-check
task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
... to make the interface compatible with the `build-container` task

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
... from the build-container task.  The `hack/generate-sast-tasks.sh`
script can be used to rebuild `sast-coverity-check.yaml`.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Dec 12, 2024
They cause the CI to be red on tasks derived from the buildah task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
It was required but not used for anything.  Also the parameters set
in the build template were not used by the coverity-availability-check
task.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
... to make the interface compatible with the `build-container` task

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
... from the build-container task.  The `hack/generate-sast-tasks.sh`
script can be used to rebuild `sast-coverity-check.yaml`.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
@kdudka
Copy link
Contributor Author

kdudka commented Jan 8, 2025

@chmeliik While testing the recent changes, I realized that this pull request is incomplete. We need to update the template for the default build pipeline such that all parameters that are passed to the build-container task are passed to the sast-coverity-check task, too. I had to do the same in my test project. The problem is that the parameters passed to the build-container task are not listed in template-build.yaml. How should I proceed with this?

@kdudka
Copy link
Contributor Author

kdudka commented Jan 8, 2025

/ok-to-test

@chmeliik
Copy link
Contributor

chmeliik commented Jan 8, 2025

@chmeliik While testing the recent changes, I realized that this pull request is incomplete. We need to update the template for the default build pipeline such that all parameters that are passed to the build-container task are passed to the sast-coverity-check task, too. I had to do the same in my test project. The problem is that the parameters passed to the build-container task are not listed in template-build.yaml. How should I proceed with this?

I think the way to go would be to update the pipelines/docker-build/patch.yaml (and copy-paste the build-container task's params to the sast-coverity-check task :-/ )

The other docker-build* pipelines use pipelines/docker-build as a base, so those should pick up the params automatically (I think)

kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
... from the build-container task.  The `hack/generate-sast-tasks.sh`
script can be used to rebuild `sast-coverity-check.yaml`.

Related: konflux-ci#1653
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
kdudka added a commit to kdudka/build-definitions that referenced this pull request Jan 8, 2025
@kdudka
Copy link
Contributor Author

kdudka commented Jan 8, 2025

/ok-to-test

@kdudka
Copy link
Contributor Author

kdudka commented Jan 8, 2025

@chmeliik Thanks for the hint! I have updated pipelines/docker-build/patch.yaml as you suggest.

@kdudka kdudka marked this pull request as ready for review January 8, 2025 12:48
@kdudka kdudka requested a review from chmeliik January 8, 2025 12:49
@chmeliik
Copy link
Contributor

chmeliik commented Jan 8, 2025

/retest

They cause the CI to be red on tasks derived from the buildah task.

Related: konflux-ci#1653
It was required but not used for anything.  Also the parameters set
in the build template were not used by the coverity-availability-check
task.

Related: konflux-ci#1653
... to make the interface compatible with the `build-container` task

Related: konflux-ci#1653
... from the build-container task.  The `hack/generate-sast-tasks.sh`
script can be used to rebuild `sast-coverity-check.yaml`.

Related: konflux-ci#1653
... which have to be indexed by numbers due to limitations of kustomize

Related: https://issues.redhat.com/browse/KONFLUX-6272
Closes: konflux-ci#1653
@kdudka
Copy link
Contributor Author

kdudka commented Jan 10, 2025

/retest

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.

6 participants