PF-2978: Update logback-core and logback-classic dependencies #494
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: dsp-appsec-trivy | |
on: | |
pull_request: | |
# Branch settings require status checks before merging, so don't add paths-ignore. | |
branches: [ master ] | |
jobs: | |
appsec-trivy: | |
# Parse Dockerfile and build, scan image if a "blessed" base image is not used | |
name: DSP AppSec Trivy check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# fetch JDK | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
# set up Gradle cache | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: | |
gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
gradle- | |
# build the image | |
- name: Build | |
id: build | |
run: | | |
# build sources and store the plain log without colors | |
./gradlew jibDockerBuild --console=plain \ | |
| perl -pe 's/\x1b\[[0-9;]*[mG]//g' | tee build.log | |
# export image name from the log | |
image=$(grep 'Built image' build.log | awk '{print $NF}') | |
echo image="${image}" >> $GITHUB_OUTPUT | |
# scan the image | |
- uses: broadinstitute/dsp-appsec-trivy-action@v1 | |
with: | |
image: ${{ steps.build.outputs.image }} |