[DT-1051] Remove flaky test #5741
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
# Build the Docker image and scan it with Trivy | |
name: dsp-appsec-trivy | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
jobs: | |
appsec-trivy: | |
name: DSP AppSec Trivy check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 and cache Gradle build | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Echo image name to output | |
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 | tee build.log | |
# export image name from the log | |
image=$(grep 'Built image' build.log | awk '{print $NF}') | |
echo "image=${image}" >> $GITHUB_OUTPUT | |
- name: Scan the image with the AppSec Trivy action | |
uses: broadinstitute/dsp-appsec-trivy-action@v1 | |
with: | |
image: ${{ steps.build.outputs.image }} |