Skip to content

Commit

Permalink
Try to add security-events: write to trivy scan (#2187)
Browse files Browse the repository at this point in the history
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
  • Loading branch information
avgustinmm authored Jan 9, 2025
1 parent dc33056 commit 07153ee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ on:
- cron: '0 4 * * *'
# enable running the workflow manually
workflow_dispatch:
pull_request:
paths:
- '.github/trivy-scan.yml'

jobs:
scan:
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -59,5 +61,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'scans/eclipse-hawkbit/hawkbit/hawkbit-update-server:latest.sarif'
category: "Container Images"
debug: true
category: "Container Images"

0 comments on commit 07153ee

Please sign in to comment.