Skip to content

For #487 - pass secrets to Earthly #6

For #487 - pass secrets to Earthly

For #487 - pass secrets to Earthly #6

name: Build with Maven directly
env:
OWASP_NVD_API_KEY: ${{ secrets.OWASP_NVD_API_KEY }}
on:
push:
paths-ignore:
- '*.md'
- 'images/**'
pull_request:
paths-ignore:
- '*.md'
- 'images/**'
workflow_dispatch:
jobs:
build:
name: Builds and tests
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build and test
run: ./mvnw --batch-mode --update-snapshots verify
- name: Execute run script
run: ./run-with-maven.sh