Skip to content

Commit

Permalink
Update .github/workflows/grype.yaml
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
naveensrinivasan and coderabbitai[bot] committed Oct 27, 2024
1 parent dd61a5f commit a40c7d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/grype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,23 @@ jobs:
scan:
name: Build and Scan
runs-on: ubuntu-latest
environment: security
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

steps:
- name: Notify on failure
if: failure()
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ Container security scan failed. Please check the workflow logs.'
})
- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit a40c7d4

Please sign in to comment.