Skip to content

Commit 685d3b1

Browse files
soodokuclaude
andcommitted
ci: correct trivy tag and make the build artifact non-empty
trivy-action tags are v-prefixed from 0.33.0 onward; @0.36.0 does not resolve and failed the Security Scan job at set-up. The build artifact uploaded nothing: ".next" is a dotfile directory and upload-artifact skips hidden paths unless include-hidden-files is set. This was pre-existing -- the build job had never run to completion, so it had never been observed. Verified the path patterns directly against @actions/glob (the library upload-artifact uses): with hidden files included, ".next/" matches 202 entries and the "!.next/cache/" exclusion brings that to 140. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 7d8f33d commit 685d3b1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ jobs:
117117
path: |
118118
.next/
119119
!.next/cache/
120+
# .next is a dotfile directory, and upload-artifact skips hidden
121+
# paths by default -- without this the artifact is empty.
122+
include-hidden-files: true
120123
retention-days: 1
121124

122125
security-scan:
@@ -128,7 +131,7 @@ jobs:
128131
uses: actions/checkout@v7
129132

130133
- name: Run Trivy vulnerability scanner
131-
uses: aquasecurity/trivy-action@0.36.0
134+
uses: aquasecurity/trivy-action@v0.36.0
132135
with:
133136
scan-type: 'fs'
134137
scan-ref: '.'

0 commit comments

Comments
 (0)