ci: scan images with prisma (#7988)

This commit is contained in:
Colin Adler
2023-06-12 23:11:45 +00:00
committed by GitHub
parent 28f35393e7
commit ac605bad3d
+9 -1
View File
@@ -10,7 +10,7 @@ on:
schedule:
# Run every 6 hours Monday-Friday!
- cron: "0 0,6,12,18 * * 1-5"
- cron: "0 0/6 * * 1-5"
# Cancel in-progress runs for pull requests when developers push
# additional changes
@@ -117,6 +117,14 @@ jobs:
make -j "$image_job"
echo "image=$(cat "$image_job")" >> $GITHUB_OUTPUT
- name: Run Prisma Cloud image scan
uses: PaloAltoNetworks/prisma-cloud-scan@v1
with:
pcc_console_url: ${{ secrets.PRISMA_CLOUD_URL }}
pcc_user: ${{ secrets.PRISMA_CLOUD_ACCESS_KEY }}
pcc_pass: ${{ secrets.PRISMA_CLOUD_SECRET_KEY }}
image_name: ${{ steps.build.outputs.image }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@41f05d9ecffa2ed3f1580af306000f734b733e54
with: