Skip to content

Commit 843bfce

Browse files
SONAR-23408 Run FOSSA analysis
1 parent f87c64c commit 843bfce

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.cirrus/tasks.yml

+17
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,23 @@ 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+
ec2_instance:
164+
<<: *VM_TEMPLATE
165+
setup_script:
166+
- curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
167+
scan_script:
168+
- echo "Scan the ${PUBLIC_IMAGE_NAME}:${tag} image"
169+
- docker pull "${PUBLIC_IMAGE_NAME}:${tag}"
170+
- .cirrus/pull.sh ${PUBLIC_IMAGE_NAME} ${tag} ${platform}
171+
- fossa container analyze -p "docker-sonarqube" -b "${tag}" ${PUBLIC_IMAGE_NAME}:${tag}
172+
156173
multi_arch_test_task:
157174
matrix:
158175
- env:

0 commit comments

Comments
 (0)