chore(deps): update dependency org.owasp:dependency-check-maven to v10.0.3 #878
Workflow file for this run
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
name: order-service | |
on: | |
push: | |
paths: | |
- "order-service/**" | |
branches: [main] | |
pull_request: | |
paths: | |
- "order-service/**" | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build: | |
name: Order Service with jdk ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "order-service" | |
strategy: | |
matrix: | |
java: ["21"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
distribution: 'graalvm' | |
java-version: ${{ matrix.java }} | |
cache: "maven" | |
- name: Printing versions | |
run: | | |
echo "GRAALVM_HOME: $GRAALVM_HOME" | |
echo "JAVA_HOME: $JAVA_HOME" | |
java --version | |
native-image --version | |
- name: Build and analyze | |
run: ./mvnw clean verify | |
- if: ${{ github.ref == 'refs/heads/main' }} | |
name: Build Image and push to docker | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
DOC_PASSCODE: ${{secrets.DOCKER_PASSCODE}} | |
DOC_USERNAME: ${{secrets.DOCKER_USERNAME}} | |
run: ./mvnw spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOC_PASSCODE} -DCI_DOCKER_USERNAME=${DOC_USERNAME} -Dspring-boot.build-image.publish=true |