Skip to content

Commit

Permalink
Edit Trivy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zbedo committed Feb 6, 2024
1 parent d73a47e commit 2e26098
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: dsp-appsec-trivy
on: [pull_request]

schedule:
- cron: '0 0 * * 0'
jobs:
appsec-trivy:
# Parse Dockerfile and build, scan image if a "blessed" base image is not used
Expand All @@ -14,4 +15,14 @@ jobs:
- uses: broadinstitute/dsp-appsec-trivy-action@v1
with:
context: ./orchestration
dockerfile: Dockerfile
dockerfile: Dockerfile
name: Alert on failures
if: ${{failure()}}
id: slack
uses: slackapi/[email protected]
with:
channel-id: '${{ secrets.CHANNEL_ID }}'
# For posting a simple plain text message
slack-message: "Trivy weekly job failed! <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Click here> to see the run. "
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_KEY }}

0 comments on commit 2e26098

Please sign in to comment.