Skip to content

Commit aa54120

Browse files
JAORMXclaude
andauthored
fix: set GH_TOKEN in build workflow and ignore Trivy DS-0002 (#30)
The build workflow fails because `gh release download` requires GH_TOKEN to be set in GitHub Actions, even for public repos. The security scan fails on DS-0002 (missing non-root USER in Dockerfiles) which is a false positive — these are microVM rootfs images where isolation comes from the VM boundary, not user namespaces. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 354834a commit aa54120

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
repo-token: ${{ secrets.GITHUB_TOKEN }}
3838

3939
- name: Build
40+
env:
41+
GH_TOKEN: ${{ github.token }}
4042
run: task build
4143

4244
- name: Build init

.trivyignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# DS-0002: "Specify at least 1 USER command in Dockerfile with non-root user"
2+
# Our Dockerfiles in images/ are microVM rootfs images, not traditional containers.
3+
# Isolation comes from the VM boundary (libkrun), not Linux user namespaces.
4+
DS-0002

0 commit comments

Comments
 (0)