Skip to content

Commit a61cb43

Browse files
SONAR-23408 Run FOSSA analysis
1 parent 848be1f commit a61cb43

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.cirrus/tasks.yml

+19
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,25 @@ public_scan_task:
153153
- .cirrus/pull.sh ${PUBLIC_IMAGE_NAME} ${tag} ${platform}
154154
- java -jar /usr/local/bin/wss-unified-agent.jar -c .cirrus/wss-unified-agent.config -apiKey $MEND_API_KEY -product ${WS_PRODUCTNAME} -project ${PUBLIC_IMAGE_NAME}:${tag} -wss.url ${WS_WSS_URL} -docker.scanImages true
155155

156+
public_fossa_scan_task:
157+
env:
158+
platform: amd64
159+
FOSSA_API_KEY: VAULT[development/team/sonarqube/kv/data/fossa data.api-key]
160+
matrix:
161+
- tag: $CURRENT_LTA_VERSION-datacenter-app
162+
- tag: $CURRENT_VERSION-datacenter-app
163+
timeout_in: 30m
164+
ec2_instance:
165+
<<: *VM_TEMPLATE
166+
type: t2.medium
167+
setup_script:
168+
- curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
169+
scan_script:
170+
- echo "Scan the ${PUBLIC_IMAGE_NAME}:${tag} image"
171+
- docker pull "${PUBLIC_IMAGE_NAME}:${tag}"
172+
- .cirrus/pull.sh ${PUBLIC_IMAGE_NAME} ${tag} ${platform}
173+
- fossa container analyze -p "docker-sonarqube" -b "${tag}" ${PUBLIC_IMAGE_NAME}:${tag}
174+
156175
multi_arch_test_task:
157176
matrix:
158177
- env:

0 commit comments

Comments
 (0)