mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: scan images with prisma (#7988)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user