File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3232 BROWSER_TRUST_KEY=${{ secrets.BROWSER_TRUST_KEY }}
3333 BROWSER_AGENT_ID=${{ secrets.BROWSER_AGENT_ID }}
3434 BROWSER_APPLICATION_ID=${{ secrets.BROWSER_APPLICATION_ID }}
35- FOSSA_API_KEY=${{ secrets.FOSSA_API_KEY }}
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ ENV FOSSA_API_KEY=$FOSSA_API_KEY
4141RUN --mount=type=cache,target=/root/.gradle ./gradlew downloadNewRelicAgent --console=plain --info --no-daemon --no-watch-fs
4242RUN --mount=type=cache,target=/root/.gradle ./gradlew build --console=plain --info --no-daemon --no-watch-fs
4343
44- RUN curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
45- RUN fossa analyze
44+ RUN if [[ -z "$FOSSA_API_KEY" ]] ; then echo -- SKIPPING FOSSA CLI DOWNLOAD ; else curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash; fi
45+ RUN if [[ -z "$FOSSA_API_KEY" ]] ; then echo -- SKIPPING FOSSA SCAN ; else fossa analyze; fi
4646
4747FROM base AS final
4848WORKDIR /app
You can’t perform that action at this time.
0 commit comments