Skip to content
This repository was archived by the owner on Nov 10, 2019. It is now read-only.

Commit b33918e

Browse files
authored
Create example.yaml
1 parent 9f63993 commit b33918e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

plugins/twistlock-scan/example.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
nexus_iq_scan_build_stage:
2+
type: composition
3+
composition:
4+
version: '2'
5+
services:
6+
imagebuild:
7+
image: ${{buildimage}}
8+
command: sh -c "exit 0"
9+
labels:
10+
build.image.id: ${{CF_BUILD_ID}}
11+
composition_candidates:
12+
scan_service:
13+
image: sctechdev/docker-security-scanner
14+
environment:
15+
- TL_CONSOLE_HOSTNAME=${{TL_CONSOLE_HOSTNAME}}
16+
- TL_CONSOLE_PORT=${{TL_CONSOLE_PORT}}
17+
- TL_CONSOLE_USERNAME=${{TL_CONSOLE_USERNAME}}
18+
- TL_CONSOLE_PASSWORD=${{TL_CONSOLE_PASSWORD}}
19+
- TL_ONLY=${{TL_ONLY}}
20+
command: twistlock.py -i "$$(docker inspect $$(docker inspect $$(docker ps -aqf label=build.image.id=${{CF_BUILD_ID}}) -f {{.Config.Image}}) -f {{.Id}} | sed 's/sha256://g')"
21+
depends_on:
22+
- imagebuild
23+
volumes:
24+
- /var/run/docker.sock:/var/run/docker.sock
25+
- /var/lib/docker:/var/lib/docker
26+
# Everything below this line is Optional for CF_METADATA
27+
- '${{CF_VOLUME_NAME}}:/codefresh/volume'
28+
add_flow_volume_to_composition: true

0 commit comments

Comments
 (0)