Conversation
- build.yml: scan the freshly built default and alpine images after the docker tests and upload the SARIF report to code scanning (fixable CRITICAL/HIGH only); the two docker jobs get security-events: write - docker-scan.yml: weekly (and manual) scan of the published openidentityplatform/openidm:latest and :alpine images, unfixed CVEs included, reported under separate trivy-image-* categories Ported from OpenIdentityPlatform/OpenDJ#854.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Docker image vulnerability scanning with Trivy, ported from OpenIdentityPlatform/OpenDJ#854.
build.yml— bothbuild-dockerandbuild-docker-alpinejobs now scan the freshly built image (resolved from the local Docker daemon, so the runner'slinux/amd64manifest only) right after the functional docker test. Findings do not fail the build: the SARIF report is uploaded viacodeql-action/upload-sarif, so PRs get a "Code scanning results / trivy-build-*" check like CodeQL and the full list lives in the Security tab. Only fixable CRITICAL/HIGH CVEs are reported (ignore-unfixed: truepluslimit-severities-for-sarif: true— without the latter the severity filter is silently dropped for SARIF output), and only the vulnerability scanner runs (scanners: vuln). The action's built-in ~1GB DB cache is disabled (cache: false) so it cannot evict them2-repositorycaches out of the repo's 10GB actions-cache quota. The two docker jobs getsecurity-events: write; SARIF upload also works for fork PRs on public repositories.docker-scan.yml(new) — weekly cron (30 5 * * 1) +workflow_dispatchscan of the publishedopenidentityplatform/openidm:latestand:alpineimages (both present on Docker Hub, last pushed 2026-07-22): new CVEs surface in already-released images (mostly via the base image) without any change in this repository. Unlike the build-time scan, unfixed CVEs are reported too — surfacing them in released images is the point. Reports are uploaded as SARIF to the Security tab with a separate category per tag (trivy-image-*, distinct from thetrivy-build-*categories inbuild.yml). The scheduled run is skipped in forks; manual runs are always allowed.aquasecurity/trivy-actionis pinned by commit SHA (ed142fd0…= v0.36.0, verified against the tag). Future false positives / accepted findings can be suppressed via a.trivyignorefile in the repository root or dismissed in the Security tab.Differences from the OpenDJ change are limited to the repository/image names; OpenIDM's docker jobs keep their
registry:2service and have no JMeter step, so nothing else was touched. Note: #206 also editsbuild.yml(workflow-levelpermissionsand action pins) in different hunks — whichever lands second may need a trivial rebase.