Skip to content

Commit

Permalink
Don't scan on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinAllen committed Nov 21, 2024
1 parent e103bf1 commit 492b80f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ jobs:
BROWSER_TRUST_KEY=${{ secrets.BROWSER_TRUST_KEY }}
BROWSER_AGENT_ID=${{ secrets.BROWSER_AGENT_ID }}
BROWSER_APPLICATION_ID=${{ secrets.BROWSER_APPLICATION_ID }}
FOSSA_API_KEY=${{ secrets.FOSSA_API_KEY }}
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ ENV FOSSA_API_KEY=$FOSSA_API_KEY
RUN --mount=type=cache,target=/root/.gradle ./gradlew downloadNewRelicAgent --console=plain --info --no-daemon --no-watch-fs
RUN --mount=type=cache,target=/root/.gradle ./gradlew build --console=plain --info --no-daemon --no-watch-fs

RUN curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
RUN fossa analyze
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
RUN if [ -z "$FOSSA_API_KEY" ] ; then \
echo --SKIPPING FOSSA SCAN ; \
else \
fossa analyze; \
fi

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit 492b80f

Please sign in to comment.