Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

Merge pull request #209 from OpenElements/spotless #40

Merge pull request #209 from OpenElements/spotless

Merge pull request #209 from OpenElements/spotless #40

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Deploy SBOM to Dependencytrack
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v6.0.0
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom
- name: deploy SBOM to Dependencytrack
uses: DependencyTrack/gh-upload-sbom@v3
with:
serverHostname: 'api.dependencytrack.open-elements.cloud'
apiKey: ${{ secrets.DEPENDENCYTRACK_API_KEY }}
projectName: 'hiero-enterprise-java'
projectVersion: 'main'
bomFilename: "target/bom.xml"
autoCreate: true