diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index cf5bc087..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,43 +0,0 @@ -# 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 -