Skip to content

Trivy

Trivy #343

Workflow file for this run

name: Trivy
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
ubuntu-build:
name: Build on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build -x check -x test --stacktrace --console=plain
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '/github/workspace/ballerina/lib'
format: 'table'
exit-code: '1'