diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index 9236821269..cb3f74372e 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -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 @@ -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" \ No newline at end of file