Skip to content

[Proof of Concept/Documentation - Do not merge] Format Parquet files on Azure Snapshot Export #5260

[Proof of Concept/Documentation - Do not merge] Format Parquet files on Azure Snapshot Export

[Proof of Concept/Documentation - Do not merge] Format Parquet files on Azure Snapshot Export #5260

Workflow file for this run

name: dsp-appsec-trivy
on: [pull_request]
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@v2
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: |
# Enable pipefail so a gradle build failure fails this step.
set -o pipefail
# 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 }}