Skip to content

Commit 1031fbd

Browse files
committed
chore: fix trivy upload-sarif category, narrow test.yaml paths
1 parent c940bf8 commit 1031fbd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66
paths:
77
- 'internal/**'
88
- 'cmd/**'
9-
- 'vendor/**'
109
- 'go.*'
11-
- '.github/**'
1210
- 'test/**'
1311
- '.github/workflows/test.yaml'
12+
- '.github/workflows/_reusable-build.yaml'
1413
pull_request:
1514

1615
env:
@@ -31,11 +30,10 @@ jobs:
3130
go:
3231
- 'internal/**'
3332
- 'cmd/**'
34-
- 'vendor/**'
3533
- 'go.*'
36-
- '.github/**'
3734
- 'test/**'
3835
- '.github/workflows/test.yaml'
36+
- '.github/workflows/_reusable-build.yaml'
3937
4038
- if: steps.filter.outputs.go == 'true'
4139
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0

.github/workflows/trivy-scan.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
uses: github/codeql-action/upload-sarif@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3.36.2
6565
with:
6666
sarif_file: 'trivy-fs-results.sarif'
67+
category: trivy-fs
6768

6869
- if: github.event_name == 'schedule'
6970
name: Run Trivy vulnerability scanner (image)
@@ -80,3 +81,4 @@ jobs:
8081
uses: github/codeql-action/upload-sarif@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3.36.2
8182
with:
8283
sarif_file: 'trivy-image-results.sarif'
84+
category: trivy-image

0 commit comments

Comments
 (0)