Skip to content

Commit 11ae33f

Browse files
committed
chore(ci): update GitHub Actions workflow to adjust permissions and refine Trivy scanning configuration
1 parent 636d30e commit 11ae33f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ jobs:
326326
needs: build
327327
runs-on: ubuntu-latest
328328
permissions:
329-
contents: write
329+
contents: read
330330
security-events: write
331331
strategy:
332332
fail-fast: false
@@ -355,8 +355,6 @@ jobs:
355355
format: "sarif"
356356
output: "trivy-results.sarif"
357357
severity: "CRITICAL,HIGH"
358-
scanners: "vuln,secret,misconfig,license"
359-
github-pat: "${{ secrets.GITHUB_TOKEN }}"
360358
- name: Log in to Container Registry (ghcr.io)
361359
if: ${{ github.event_name != 'pull_request' }}
362360
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
@@ -372,8 +370,6 @@ jobs:
372370
format: "sarif"
373371
output: "trivy-results.sarif"
374372
severity: "CRITICAL,HIGH"
375-
scanners: "vuln,secret,misconfig,license"
376-
github-pat: "${{ secrets.GITHUB_TOKEN }}"
377373
- name: Upload Trivy scan results to GitHub Security tab
378374
if: always()
379375
uses: github/codeql-action/upload-sarif@v4

0 commit comments

Comments
 (0)