This repository was archived by the owner on May 16, 2026. It is now read-only.
Merge pull request #210 from OpenElements/dependabot/github_actions/a… #46
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
| # 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 | |