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

Support for summarized and scheduled notifications #3849

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
b8b975e
added javacron dependency
MM-msr Apr 29, 2024
3625d9c
added scheduled properties in NotificationRule, added configurable de…
MM-msr Apr 29, 2024
8f6349a
changed type of cron configuration to string
MM-msr Apr 29, 2024
763f31d
added fallback for last execution time if not set
MM-msr Apr 29, 2024
d0b6632
added scheduled properties to crud-operations in query manager
MM-msr Apr 29, 2024
8c7cf07
Revert "added scheduled properties to crud-operations in query manager"
MM-msr May 2, 2024
a085d71
moved scheduled properties from NotificationRule to new class
MM-msr May 2, 2024
a519daa
added persistence entry for ScheduledNotificationRule
MM-msr May 2, 2024
8195043
added scheduled crud methods to query managers
MM-msr May 2, 2024
ce778fb
added api for scheduled notification rules
MM-msr May 2, 2024
f3cfef4
added some minor validation in scheduled api
MM-msr May 3, 2024
a514daa
fixed wrong database usage (data stored in notificationrule table), w…
MM-msr May 3, 2024
75ad47f
Updated NotificationQueryManager to use UTC time for ScheduledNotific…
MM-msr May 7, 2024
3eb3cd5
Add new methods for retrieving new policy violations and vulnerabilit…
MM-msr May 7, 2024
498dffb
Added basic Task for sending scheduled notifications (originates main…
MM-msr May 7, 2024
23e0810
added update method for last execution after scheduled task completion
MM-msr May 8, 2024
a0019ac
fixed VulnerabilityQueryManager SQL query for new vulnerabilities
MM-msr May 10, 2024
79a23d1
added basic support for scheduled publishing in notification publishers
MM-msr May 13, 2024
2150cde
Added API endpoints for filtering publishers
MM-msr May 13, 2024
286f87c
Unique serialVersionUID for ScheduledNotificationRule instead of same…
MM-msr May 14, 2024
42fd7df
fixed setting last execution time on update
MM-msr May 14, 2024
9326dd6
fixed wrong method usage for updating last execution time in QueryMan…
MM-msr May 15, 2024
af19b45
fixed last execution to only update after successful publishing
MM-msr May 15, 2024
84e5664
code cleanup
MM-msr May 16, 2024
044945d
abstracted NotificationRule with interface for reusing existing Publi…
MM-msr May 16, 2024
2e8c0bf
basic rebuild of scheduled publish task to match idea of multiple pub…
MM-msr May 16, 2024
2492fdf
null checks in query managers for new events since last scheduled exe…
MM-msr May 17, 2024
2fcce1e
generation of basic notification content in task
MM-msr May 17, 2024
1ab2149
fixed missing header part in Rule
MM-msr May 24, 2024
9d4bd35
fixed query in policy and vulnerability querymanagers when project li…
MM-msr May 24, 2024
c96996a
changed retrieval of default publishers from db to support multiple d…
MM-msr May 24, 2024
5de74dd
fixed missing detach for scheduled notification items
MM-msr May 24, 2024
951053c
added scheduled default publisher with testing email template, suppor…
MM-msr May 27, 2024
075b582
modified scheduled task to deliver test data with new subject classes
MM-msr May 28, 2024
4070258
added cron task management on CRUD operations with automatic re-sched…
MM-msr May 28, 2024
775d2fc
removed test date in scheduled task
MM-msr May 28, 2024
f6e36d5
fixed missing update of last execution time after successful publish
MM-msr May 28, 2024
d9fe8d1
initialize scheduled notification tasks at startup
MM-msr May 29, 2024
6eeb281
added option to run scheduled notification rule manually instant
MM-msr May 29, 2024
cfcd750
support to read default cron expression from environment variables
MM-msr May 29, 2024
8ec927a
update last execution time of rule without publishing, if no errors o…
MM-msr May 29, 2024
4000b12
added informational logging
MM-msr May 29, 2024
9c023bd
removed author tags
MM-msr May 29, 2024
66ef532
removed unnecessary code in publisher task
MM-msr May 29, 2024
eb785d6
moved notification title and content generation to NotificationUtil c…
MM-msr May 29, 2024
717ae66
removed check for instant execution api payload to match UI changes (…
MM-msr May 30, 2024
a07d415
added json serializer for ZonedDateTime for better readability in api…
MM-msr May 31, 2024
e0cfc1a
Log debug information upon possible secret key corruption
nscuro Apr 28, 2024
463cff7
Bump Temurin base image to `21.0.3_9`
nscuro Apr 28, 2024
36b74a8
Bump github/codeql-action from 3.25.1 to 3.25.3
dependabot[bot] Apr 29, 2024
9bf9013
Bump actions/upload-artifact from 4.3.2 to 4.3.3
dependabot[bot] Apr 29, 2024
944312b
Bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 29, 2024
e23f5be
Bump actions/download-artifact from 4.1.5 to 4.1.7
dependabot[bot] Apr 29, 2024
4c2b846
Add support for worker pool drain timeout
nscuro Apr 29, 2024
eecd43e
Update v4.11 changelog with recent changes
nscuro Apr 29, 2024
5208d06
Catch all unhandled `ClientErrorException`s
nscuro Apr 29, 2024
491c98e
Fall back to no authentication when OSS Index API token decryption fails
nscuro May 1, 2024
bb7ab8c
Truncate `ComponentProperty` value at 1024 characters
nscuro May 1, 2024
c13dbdd
Fix unique constraint violation during NVD mirroring
nscuro May 1, 2024
4ff09cf
Add test for `NistMirrorTask`
nscuro May 2, 2024
7add0bc
De-duplicate CPEs in NVD feed file parsing
nscuro May 2, 2024
2deafd9
Start Jersey `TestContainer` once per class vs. once per test method
nscuro May 2, 2024
481c051
Reduce preemptive expensive calls in `ResourceTest`
nscuro May 2, 2024
76e1bde
Add the project name and project URL to bom processing notifications
2000rosser May 2, 2024
f188683
Revert "Add the project name and project URL to bom processing notifi…
2000rosser May 3, 2024
055baf2
Create a new entry in the msteams pebble format for BOM_PROCESS_FAILE…
2000rosser May 3, 2024
c35186e
Bump actions/dependency-review-action from 4.2.5 to 4.3.2
dependabot[bot] May 6, 2024
addfb56
Run builds and CI on `feature-*` branches
nscuro May 6, 2024
eeabe12
Update v4.11 changelog with recent changes
nscuro May 6, 2024
f6a7ef3
Bump dependencies to their latest version
nscuro May 6, 2024
43af7ad
Simplify `BomUploadProcessingTaskTest`
nscuro May 6, 2024
2794e0b
Disable Maven transfer progress in CI
nscuro May 6, 2024
b697fd0
Fix changelog typo; Set release date; Bump docs version
nscuro May 6, 2024
1ea1e5a
Fix missing default repos for Hackage and Nixpkgs
nscuro May 6, 2024
1b3b23d
Reduce verbosity of `ResourceTest`s
nscuro May 6, 2024
c819608
Bump frontend to 4.11.0
nscuro May 7, 2024
ed7fbe6
Fix typo in `DEVELOPING.md`
nscuro May 7, 2024
d24202c
Update v4.11 changelog with frontend checksums
nscuro May 7, 2024
b303790
prepare-release: set version to 4.11.0
dependencytrack-bot May 7, 2024
7e26dd2
Update release artifact checksums for v4.11.0
nscuro May 7, 2024
1939a69
Bump version to `4.12.0-SNAPSHOT`
nscuro May 7, 2024
3ec0b40
Raise baseline Java version to 21
nscuro May 7, 2024
3250d5f
Update versions in issue template for defects
nscuro May 8, 2024
e6b8ac7
Bump org.testcontainers:testcontainers from 1.19.7 to 1.19.8
dependabot[bot] May 9, 2024
d85f12d
Add active Field To Project Versions
aravindparappil46 May 10, 2024
de97b82
Add Test For Checking Active Field In Project Versions
aravindparappil46 May 10, 2024
23b4694
Remove setActive From ProjectVersion
aravindparappil46 May 11, 2024
f237060
Change ProjectVersion Into A Record
aravindparappil46 May 12, 2024
c211eb7
Bump actions/checkout from 4.1.4 to 4.1.5
dependabot[bot] May 13, 2024
a25f7ca
Bump github/codeql-action from 3.25.3 to 3.25.4
dependabot[bot] May 13, 2024
79f0ade
Bump aquasecurity/trivy-action from 0.19.0 to 0.20.0
dependabot[bot] May 13, 2024
466c566
Fix failing JSON BOM validation when `specVersion` is not one of the …
nscuro May 13, 2024
83bb965
Fix broken global vuln audit view for MSSQL
nscuro May 13, 2024
384e37e
Bump debian from `ff39497` to `2b2e35d` in /src/main/docker
dependabot[bot] May 15, 2024
13710e1
Bump com.google.cloud.sql:cloud-sql-connector-jdbc-sqlserver
dependabot[bot] May 15, 2024
6b65024
Support ingestion of CycloneDX v1.6 BOMs
nscuro May 15, 2024
2b63328
Bump Alpine to `2.2.6-SNAPSHOT`
nscuro May 6, 2024
8963ef9
Replace manual transaction commits with `callInTransaction`
nscuro May 10, 2024
ae81798
Fix `VulnerabilityResourceTest`
nscuro May 10, 2024
577c92f
Fix missing `datanucleus.query.sql.allowall`
nscuro May 10, 2024
97cfdb9
Update database support docs
nscuro May 15, 2024
73b2791
Remove workarounds for #2677
nscuro May 15, 2024
ba4ee2b
Address relocation of `mysql:mysql-connector-java`
nscuro May 15, 2024
e5dc45f
Fix missing version of `exec-maven-plugin`
nscuro May 15, 2024
ff89199
Remove unused `getVulnerabilitiesForNpmModule`
nscuro May 15, 2024
835f641
Address various compiler warnings
nscuro May 15, 2024
2f8c2f2
Address relocation of `WordUtils` to `commons-text`
nscuro May 15, 2024
6ef77f1
Handle `ClassCastException` in `createNotificationPublisher`
nscuro May 15, 2024
1191e16
Remove legacy `BomUploadProcessingTask`
nscuro May 16, 2024
dfafeec
Gracefully handle `NotSortableException`s
nscuro May 16, 2024
6f3367c
Migrate from Swagger v2 to OpenAPI v3
nscuro May 16, 2024
74d586b
fix os handling when trivy sets pkgType on properties
May 17, 2024
cd4f8c8
add test and only apply package type if distro is not complete
May 17, 2024
078dc3d
add test for distro without OS
May 17, 2024
80c1fbf
wrong reproducible image
May 17, 2024
7a47366
change vulnerability id on test
May 17, 2024
36f1278
fix test
May 17, 2024
b13289b
Add `OpenApiResourceTest` and fix validation issues
nscuro May 17, 2024
90bfd89
Populate OpenAPI metadata
nscuro May 17, 2024
b3feb5c
Remove unused `swagger-jaxrs2-servlet-initializer-v2` dependency
nscuro May 17, 2024
a37022d
Avoid timeout in `OpenApiResourceTest`
nscuro May 17, 2024
ed26d33
Fix OpenAPI types of UNIX timestamp fields
nscuro May 18, 2024
7e1869b
Bump org.eclipse.jetty:jetty-maven-plugin from 10.0.20 to 10.0.21
dependabot[bot] May 17, 2024
52ee4c1
Add changelog for v4.11.1
nscuro May 19, 2024
1590edf
Bump bundled frontend to v4.11.1
nscuro May 19, 2024
8f9c33d
Update versions in issue template for defects
nscuro May 19, 2024
7579cad
add date format to support offset
sahibamittal May 20, 2024
8b6a89c
Handle breaking change in Trivy server API
nscuro May 20, 2024
f3cda2c
Bump github/codeql-action from 3.25.4 to 3.25.6
dependabot[bot] May 20, 2024
f6b2c70
Bump actions/checkout from 4.1.5 to 4.1.6
dependabot[bot] May 20, 2024
344caf5
---
dependabot[bot] May 22, 2024
961e558
Fix project name not showing in Jira tickets
lgrguricmileusnic May 22, 2024
a8561a6
Add EPSS to policies
2000rosser May 22, 2024
21fa0a0
incorrect operator
2000rosser May 23, 2024
bf81687
change violation type to security and fix logger
2000rosser May 23, 2024
a3bc601
Bump org.apache.commons:commons-compress from 1.26.1 to 1.26.2
dependabot[bot] May 24, 2024
be7cd22
Bump aquasecurity/trivy-action from 0.20.0 to 0.21.0
dependabot[bot] May 27, 2024
9e99774
Bump org.apache.maven:maven-artifact from 3.9.6 to 3.9.7
dependabot[bot] May 27, 2024
13e2241
Testing component search by name
rcsilva83 May 27, 2024
2eebb65
Adding support for component search by group
rcsilva83 May 27, 2024
cda0be6
Fixing test assertions
rcsilva83 May 27, 2024
609a8dd
Migrate to Jakarta EE 10 and Jetty 12
nscuro May 17, 2024
515a1d8
Bump Alpine to `3.0.0-SNAPSHOT`
nscuro May 28, 2024
24f131c
Fix `jakarta.servlet-api` not being inherited from `alpine-server`
nscuro May 29, 2024
15ad0ac
Fix licenses not being resolved by name
nscuro May 30, 2024
68e260c
Fix Slack notifications failing when no base URL is configured
nscuro Jun 1, 2024
a2cbc76
Add publisher tests for `NEW_VULNERABLE_DEPENDENCY`
nscuro Jun 1, 2024
4737ec1
Bump bundled frontend to 4.11.2
nscuro Jun 1, 2024
20b878b
Add changelog for v4.11.2
nscuro Jun 1, 2024
554d508
Update versions in issue template for defects
nscuro Jun 1, 2024
c165a0f
Add Notification For BOM_VALIDATION_FAILED
aravindparappil46 Jun 2, 2024
4b0e577
Add Tests For Jira, MatterMost and Webhook
aravindparappil46 Jun 2, 2024
8f31c94
Fix Mail Publisher Test
aravindparappil46 Jun 2, 2024
0d3f2f2
Replace InvalidBomProblemDetails with Errors
aravindparappil46 Jun 2, 2024
9700ad0
Remove unused import
aravindparappil46 Jun 2, 2024
1b07820
Fix WebhookPublisherTest
aravindparappil46 Jun 2, 2024
3875f92
Bump docker/login-action from 3.1.0 to 3.2.0
dependabot[bot] Jun 3, 2024
5ace1ff
Bump github/codeql-action from 3.25.6 to 3.25.7
dependabot[bot] Jun 3, 2024
a139dfb
Add changelog for v4.11.3
nscuro Jun 3, 2024
d9b475b
Update versions in issue template for defects
nscuro Jun 3, 2024
d7e9ce3
added field in NotificationRule Api test to match new publishSchedule…
MM-msr May 31, 2024
37df0a0
added tests for scheduled notification model and api
MM-msr May 31, 2024
e631f5c
added tests for new publisher code
MM-msr Jun 3, 2024
c5dfc87
fixes merge errors in new scheduled code files due new packages
MM-msr Jun 3, 2024
9df035f
added new data models to match new provided pebble template
MM-msr Jun 5, 2024
76c1fc2
changed depending classes to use new template models
MM-msr Jun 5, 2024
e2a7bf1
FIX: missing javax.validation reference after merging master changes …
MM-msr Jun 5, 2024
0e85020
fixed wrong query in getting findings with since-date-filter
MM-msr Jun 5, 2024
e23710c
fixed typo in overview model
MM-msr Jun 5, 2024
9f3109e
fixed StackOverflowException due to missing method definition
MM-msr Jun 6, 2024
71b15af
fixed ignore of suppressed violations, fixed error on pebble template…
MM-msr Jun 6, 2024
5183a4f
added child projects audit in scheduled notification mail
MM-msr Jun 6, 2024
f3726f5
ignore version label in template if not set
MM-msr Jun 6, 2024
48e0832
fixed detach in scheduled task to avoid implicit modification of noti…
MM-msr Jun 6, 2024
462271d
fixed determination of affected project in scheduled notification rul…
MM-msr Jun 7, 2024
bc8587e
updated console default publisher and template to support scheduled n…
MM-msr Jun 10, 2024
a67892e
hide details part in mail if no new vulnerabilities were found
MM-msr Jun 10, 2024
2c246d5
added new policy violation processing in scheduled notification, refa…
MM-msr Jun 11, 2024
4be64c0
refactored scheduled models to retrieve data from db only once
MM-msr Jun 12, 2024
095f804
changed PolicyViolationDetails back to PolicyViolation base type to r…
MM-msr Jun 12, 2024
30551f1
fixed typo
MM-msr Jun 12, 2024
1307733
added publisher tests
MM-msr Jun 13, 2024
324634b
removed notification level in scheduled rule from persistence and usage
MM-msr Jun 13, 2024
7fc26a3
minor refactoring
MM-msr Jun 13, 2024
6a8d473
removed unneeded tests
MM-msr Jun 13, 2024
69561e8
Creating ADOPTERS.md as well as ADOPTERS ISSUE Type for future adopto…
spawar-apex Jun 3, 2024
6f08161
Creating ADOPTERS.md as well as ADOPTERS ISSUE Type for future adopto…
spawar-apex Jun 3, 2024
004dd7c
Creating ADOPTERS.md as well as ADOPTERS ISSUE Type for future adopto…
spawar-apex Jun 3, 2024
1319d4f
Creating ADOPTERS.md as well as ADOPTERS ISSUE Type for future adopto…
spawar-apex Jun 3, 2024
5c09781
Bump org.eclipse.jetty.ee10:jetty-ee10-maven-plugin
dependabot[bot] Jun 4, 2024
d539f0e
add mapping for component external references
sahibamittal Jun 4, 2024
c419238
Bump org.apache.maven.plugins:maven-checkstyle-plugin
dependabot[bot] Jun 6, 2024
5e70b84
Bump CWE dictionary to v4.14
nscuro Jun 6, 2024
579f540
Bump github/codeql-action from 3.25.7 to 3.25.8
dependabot[bot] Jun 10, 2024
4cffc0b
Bump aquasecurity/trivy-action from 0.21.0 to 0.22.0
dependabot[bot] Jun 10, 2024
82aab4d
Bump actions/dependency-review-action from 4.3.2 to 4.3.3
dependabot[bot] Jun 10, 2024
c52a032
Bump debian from `2b2e35d` to `0200978` in /src/main/docker
dependabot[bot] Jun 13, 2024
7010219
fix issue in vulnerabilityaudit where wrong projects shown when show …
2000rosser Jun 12, 2024
f1cfa43
Bump com.google.cloud.sql:cloud-sql-connector-jdbc-sqlserver
dependabot[bot] Jun 12, 2024
0184026
fixed commit 06cb587: Exception in PublishContext due missing notific…
MM-msr Jun 14, 2024
d900ec9
changed suppressed type in template models to bool due to better json…
MM-msr Jun 14, 2024
3f2cc77
fixed json structure of template models
MM-msr Jun 14, 2024
d6ef3ac
added documentation for notification models in templates
MM-msr Jun 14, 2024
19c5357
changed notification title + content to support single occurrences
MM-msr Jun 14, 2024
cbf2432
fixed total vulnerabilities determination (without regarding last not…
MM-msr Jun 14, 2024
4058bdd
added new publisher types in documentation
MM-msr Jun 14, 2024
d223b9e
updated mail template
MM-msr Jun 14, 2024
52b3ad8
added class comments for all relevant new introduced classes
MM-msr Jun 14, 2024
a381ff9
removed debug code
MM-msr Jun 14, 2024
c1d81e8
Bump SPDX license list to v3.24.0
nscuro Jun 14, 2024
e269964
Bump `cyclonedx-core-java` to `9.0.2`
nscuro Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/adopt-dependency-track.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Adopt Dependency Track
description: Let the community know you have adopted Dependency Track.
title: organization_name has adopted Dependency Track
labels: "adopt-dependency-track"
assignees: []
body:
- type: markdown
attributes:
value: |
Thank you for supporting the Dependency track project. Adding your organization to the list of adopters raises awareness for the project and is more help than you think!

Check the current list of adopters:
https://github.com/DependencyTrack/dependency-track/blob/master/ADOPTERS.md
- type: input
id: org-name
attributes:
label: Organization Name
description: Name of the organization.
placeholder: ex. OWASP, Inc.
validations:
required: false
- type: input
id: org-url
attributes:
label: Organization Website
description: Provide a link to the organization website.
placeholder: ex. https://dependencytrack.org/
validations:
required: false
- type: input
id: org-logo
attributes:
label: Organization Logo (optional)
description: Provide a link to the organization logo.
placeholder: ex. https://avatars.githubusercontent.com/u/40258585?s=200&v=4
validations:
required: false
- type: textarea
id: dependency-track-use-case
attributes:
label: How is your organization using Dependency Track?
description: 2 or 3 sentences about how your organization has incorporated Dependency Track.
placeholder: We secure all the things!
validations:
required: false
- type: input
id: source-code
attributes:
label: Source Code Link (optional)
description: Is your use case open source? Provide a link.
placeholder: ex. https://github.com/DependencyTrack/dependency-track
validations:
required: false
- type: textarea
id: content-links
attributes:
label: Want to link blogs or videos? Share them here.
description: Please copy and paste links to content that shows how you're using Dependency Track.
- type: checkboxes
id: existing-entry
attributes:
label: Update entry
options:
- label: Check this box if you want to update an existing entry.
required: false
9 changes: 6 additions & 3 deletions .github/ISSUE_TEMPLATE/defect-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ body:
- 4.7.x
- 4.8.x
- 4.9.x
- 4.10.0
- 4.10.1
- 4.11.0-SNAPSHOT
- 4.10.x
- 4.11.0
- 4.11.1
- 4.11.2
- 4.11.3
- 4.12.0-SNAPSHOT
validations:
required: true
- type: dropdown
Expand Down
46 changes: 29 additions & 17 deletions .github/workflows/_meta-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
required: false
default: false
description: "publish and scan the container image once its built"
ref-name:
type: string
required: true
description: "Short ref name of the branch or tag that triggered the workflow run"
secrets:
registry-0-usr:
required: true
Expand All @@ -24,13 +28,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # tag=v4.2.1
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
cache: 'maven'

- name: Setup CycloneDX CLI
Expand All @@ -43,15 +47,15 @@ jobs:

- name: Build with Maven
run: |-
mvn clean
mvn package -Dmaven.test.skip=true -P enhance -P embedded-jetty -Dservices.bom.merge.skip=false -Dlogback.configuration.file=src/main/docker/logback.xml
mvn clean -P clean-exclude-wars
mvn package -Dmaven.test.skip=true -P enhance -P embedded-jetty -P bundle-ui -Dservices.bom.merge.skip=false -Dlogback.configuration.file=src/main/docker/logback.xml
mvn clean -P clean-exclude-wars
mvn cyclonedx:makeBom -Dservices.bom.merge.skip=false org.codehaus.mojo:exec-maven-plugin:exec@merge-services-bom
mvn -B --no-transfer-progress clean
mvn -B --no-transfer-progress package -Dmaven.test.skip=true -P enhance -P embedded-jetty -Dservices.bom.merge.skip=false -Dlogback.configuration.file=src/main/docker/logback.xml
mvn -B --no-transfer-progress clean -P clean-exclude-wars
mvn -B --no-transfer-progress package -Dmaven.test.skip=true -P enhance -P embedded-jetty -P bundle-ui -Dservices.bom.merge.skip=false -Dlogback.configuration.file=src/main/docker/logback.xml
mvn -B --no-transfer-progress clean -P clean-exclude-wars
mvn -B --no-transfer-progress cyclonedx:makeBom -Dservices.bom.merge.skip=false org.codehaus.mojo:exec-maven-plugin:exec@merge-services-bom

- name: Upload Artifacts
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # tag=v4.3.2
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # tag=v4.3.3
with:
name: assembled-wars
path: |-
Expand All @@ -74,10 +78,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Download Artifacts
uses: actions/download-artifact@8caf195ad4b1dee92908e23f56eeb0696f1dd42d # tag=v4.1.5
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # tag=v4.1.7
with:
name: assembled-wars
path: target
Expand All @@ -92,7 +96,7 @@ jobs:
install: true

- name: Login to Docker.io
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # tag=v3.1.0
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # tag=v3.2.0
if: ${{ inputs.publish-container }}
with:
registry: docker.io
Expand All @@ -102,9 +106,17 @@ jobs:
- name: Set Container Tags
id: tags
run: |-
TAGS="docker.io/dependencytrack/${{ matrix.distribution }}:${{ inputs.app-version }}"
if [[ "${{ inputs.app-version }}" != "snapshot" ]]; then
TAGS="${TAGS},docker.io/dependencytrack/${{ matrix.distribution }}:latest"
IMAGE_NAME="docker.io/dependencytrack/${{ matrix.distribution }}"
REF_NAME="${{ inputs.ref-name }}"
TAGS=""

if [[ $REF_NAME == feature-* ]]; then
TAGS="${IMAGE_NAME}:${REF_NAME,,}"
else
TAGS="${IMAGE_NAME}:${{ inputs.app-version }}"
if [[ "${{ inputs.app-version }}" != "snapshot" ]]; then
TAGS="${TAGS},${IMAGE_NAME}:latest"
fi
fi
echo "tags=${TAGS}" >> $GITHUB_OUTPUT

Expand All @@ -123,7 +135,7 @@ jobs:

- name: Run Trivy Vulnerability Scanner
if: ${{ inputs.publish-container }}
uses: aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 # tag=0.19.0
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # tag=0.22.0
with:
image-ref: docker.io/dependencytrack/${{ matrix.distribution }}:${{ inputs.app-version }}
format: 'sarif'
Expand All @@ -133,6 +145,6 @@ jobs:

- name: Upload Trivy Scan Results to GitHub Security Tab
if: ${{ inputs.publish-container }}
uses: github/codeql-action/upload-sarif@c7f9125735019aa87cfc361530512d50ea439c71 # tag=v3.25.1
uses: github/codeql-action/upload-sarif@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # tag=v3.25.8
with:
sarif_file: 'trivy-results.sarif'
5 changes: 4 additions & 1 deletion .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches:
- 'master' # Default branch
- 'feature-**' # Feature branches
- '[0-9]+.[0-9]+.x' # Release branches
paths-ignore:
- '**/*.md'
- 'docs/**'
pull_request:
branches:
- 'master' # Default branch
- 'feature-**' # Feature branches
paths-ignore:
- '**/*.md'
- 'docs/**'
Expand All @@ -23,7 +25,8 @@ jobs:
uses: ./.github/workflows/_meta-build.yaml
with:
app-version: "snapshot"
publish-container: ${{ github.ref == 'refs/heads/master' }}
publish-container: ${{ github.ref_name == 'master' || startsWith(github.ref_name, 'feature-') }}
ref-name: ${{ github.ref_name }}
permissions:
security-events: write # Required to upload trivy's SARIF output
secrets:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
exit 1
fi
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Parse Version from POM
id: parse
Expand All @@ -38,6 +38,7 @@ jobs:
with:
app-version: ${{ needs.read-version.outputs.version }}
publish-container: true
ref-name: ${{ github.ref_name }}
permissions:
security-events: write # Required to upload trivy's SARIF output
secrets:
Expand All @@ -51,10 +52,10 @@ jobs:
- call-build
steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Download Artifacts
uses: actions/download-artifact@8caf195ad4b1dee92908e23f56eeb0696f1dd42d # tag=v4.1.5
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # tag=v4.1.7
with:
name: assembled-wars
path: target
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
release-branch: ${{ steps.variables.outputs.release-branch }}
steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Setup Environment
id: variables
Expand Down Expand Up @@ -51,17 +51,17 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # tag=v4.2.1
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
cache: 'maven'

- name: Set Version
run: mvn versions:set -DnewVersion=${VERSION}
run: mvn -B --no-transfer-progress versions:set -DnewVersion=${VERSION}

- name: Commit Version
env:
Expand Down Expand Up @@ -118,12 +118,12 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6
with:
ref: ${{ needs.prepare-release.outputs.release-branch }}

- name: Set SNAPSHOT Version after Release
run: mvn versions:set -DnewVersion=${NEXT_VERSION}
run: mvn -B --no-transfer-progress versions:set -DnewVersion=${NEXT_VERSION}

- name: Commit SNAPSHOT Version
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-pr-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
&& github.event.workflow_run.conclusion == 'success'
steps:
- name: Download PR test coverage report
uses: actions/download-artifact@8caf195ad4b1dee92908e23f56eeb0696f1dd42d # tag=v4.1.5
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # tag=v4.1.7
with:
name: pr-test-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches:
- 'master' # Default branch
- 'feature-**' # Feature branches
- '[0-9]+.[0-9]+.x' # Release branches
paths-ignore:
- '**/*.md'
- 'docs/**'
pull_request:
branches:
- 'master' # Default branch
- 'feature-**' # Feature branches
- '[0-9]+.[0-9]+.x' # Release branches
paths-ignore:
- '**/*.md'
Expand All @@ -31,19 +33,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # tag=v4.2.1
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
cache: 'maven'

- name: Execute unit tests
run: |-
mvn clean
mvn test -P enhance
mvn -B --no-transfer-progress clean
mvn -B --no-transfer-progress test -P enhance

# Publishing coverage to Codacy is only possible for builds of push events.
# PRs from forks do not get access to repository secrets.
Expand All @@ -64,7 +66,7 @@ jobs:

- name: Upload PR test coverage report
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # tag=v4.3.2
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # tag=v4.3.3
with:
name: pr-test-coverage-report
path: |-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # tag=v4.1.6

- name: Dependency Review
uses: actions/dependency-review-action@5bbc3ba658137598168acb2ab73b21c432dd411b # tag=v4.2.5
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # tag=v4.3.3
21 changes: 21 additions & 0 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Adopters

<!-- Hello! If you are using OWASP Dependency Trtack and contributing to this file, thank you! -->
<!-- Please keep lines shorter than 80 characters (or so.) Links can go long. -->

This is a list of organizations that have spoken publicly about their adoption or
production users that have added themselves (in alphabetical order):

* [Coming Soon]



This is a list of adopters in early stages of production or
pre-production (in alphabetical order):

* [Apex Fintech Solutions](https://apexfintechsolutions.com/) has integrated OWASP Dependency-Track into their CI/CD pipeline as part of the DevSecOps program. This integration allows for the upload of SBOMs (Software Bill of Materials) to the platform for comprehensive component analysis and a detailed understanding of the software inventory used in software applications. By analyzing the components in our monorepo, we enhance our vulnerability management program and gain valuable insights into transitive dependencies, which traditional SCA (Software Composition Analysis) tools often overlook.


If you have adopted OWASP Depenency Track and would like to be included in this list,
feel free to submit a PR updating this file or
[open an issue](https://github.com/).
Loading