Dynamically Fetching Trivy Binary #55
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: PR sanity check | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn clean -B package --file pom.xml -DskipTests | |
- name: Lint | |
run: mvn spotless:check | |
- name: Tests | |
run: mvn clean install | |
- name: Trivy Security Scan | |
run: mvn br.com.orla:trivy-maven-plugin:trivy-scan |