Skip to content

Commit 0c9ecaf

Browse files
committed
Add fossa scans
1 parent 079316d commit 0c9ecaf

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,16 @@ steps:
99
- docker-compose#v3.0.0:
1010
run: unit-test
1111
config: docker/buildkite/docker-compose.yaml
12+
13+
- label: ":alien: Fossa scan"
14+
agents:
15+
queue: "default"
16+
docker: "*"
17+
command: "fossa init --include-all --no-ansi; fossa analyze --no-ansi -b $${BUILDKITE_BRANCH:-$$(git branch --show-current)}; fossa test --timeout 1800 --no-ansi"
18+
timeout_in_minutes: 60
19+
plugins:
20+
- docker-compose#v3.0.0:
21+
run: fossa
22+
config: docker/buildkite/docker-compose.yaml
23+
1224
- wait

docker/buildkite/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ RUN apk update && apk add --virtual wget ca-certificates wget && apk add protobu
1212
# Git is needed in order to update the dls submodule
1313
RUN apk add --virtual git
1414

15+
# Fossa to run license scans
16+
RUN wget -O- https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sh
17+
1518
RUN mkdir /temporal-java-samples
1619
WORKDIR /temporal-java-samples

docker/buildkite/docker-compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ services:
1010
- "USER=unittest"
1111
volumes:
1212
- "../../:/temporal-java-samples"
13+
14+
fossa:
15+
build:
16+
context: ../../
17+
dockerfile: ./docker/buildkite/Dockerfile
18+
command: /bin/sh
19+
environment:
20+
- BUILDKITE_BRANCH
21+
- FOSSA_API_KEY
22+
volumes:
23+
- "../../:/temporal-java-samples"

0 commit comments

Comments
 (0)