Updated all DD scanTypes to v2.29 due to a lot more parser integrated… #21
This file contains 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
# SPDX-FileCopyrightText: 2023 iteratec GmbH | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# This workflow will publish a Java project with Maven | |
# See https://github.com/jonashackt/github-actions-release-maven | |
name: Publish Snapshot | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
publish-snapshot: | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'secureCodeBox/defectdojo-client-java' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Build & Publish to Maven Central | |
run: mvn -U -B clean deploy # -U: force updates for dependencies, -B: no user input | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |