Skip to content

Migrate trivy scan to trivy-action#2992

Merged
strailov merged 2 commits intoeclipse-hawkbit:masterfrom
boschglobal:feature/migrate_trivy_to_trivy_action
Apr 3, 2026
Merged

Migrate trivy scan to trivy-action#2992
strailov merged 2 commits intoeclipse-hawkbit:masterfrom
boschglobal:feature/migrate_trivy_to_trivy_action

Conversation

@strailov
Copy link
Copy Markdown
Contributor

@strailov strailov commented Mar 31, 2026

The PR introduces trivy-action instead of the current trivy installation & scan.

Also fix the trivy scan action when not uploading results - exit 0 was invoked only in the scope of the run:
This would also lead to uploading results. If using exit 1 - this would leave to job failure which we don't need.

So added checks PER upload of artifact in order to escape the above problems.

Also switched to hard version approach for each github action references (not only for major releases like v6)

@hawkbit-bot
Copy link
Copy Markdown

Thanks @strailov for taking the time to contribute to hawkBit! We really appreciate this. Make yourself comfortable while I'm looking for a committer to help you with your contribution.
Please make sure you read the contribution guide and signed the Eclipse Contributor Agreement (ECA).

@strailov strailov merged commit 273abeb into eclipse-hawkbit:master Apr 3, 2026
3 of 4 checks passed
@strailov strailov deleted the feature/migrate_trivy_to_trivy_action branch April 3, 2026 07:44
avgustinmm added a commit that referenced this pull request Apr 7, 2026
* Migrate trivy scan to trivy-action (#2992)

* Migrate trivy scan to trivy-action

* Revert to hard versions approach, but not only with major ref

Signed-off-by: strailov <[email protected]>

---------

Signed-off-by: strailov <[email protected]>

* Fix vulnerability build (#2997)

Signed-off-by: strailov <[email protected]>

* Fix/vulnerability build (#2998)

* Fix vulnerability build

Signed-off-by: strailov <[email protected]>

* add scans dir before scanning

Signed-off-by: strailov <[email protected]>

---------

Signed-off-by: strailov <[email protected]>

* Fix stop rollout when using PostgreSQL (#2996)

Signed-off-by: strailov <[email protected]>

* Bump docker/login-action from 4.0.0 to 4.1.0 (#2994)

Bumps [docker/login-action](https://github.com/docker/login-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: strailov <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Stanislav Trailov <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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