-
Notifications
You must be signed in to change notification settings - Fork 162
Add Security & License Scanning Workflow to CI #1067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,10 @@ WORKDIR /app | |
| COPY ./dockerfiles/KServe/entrypoint.sh ./entrypoint.sh | ||
| COPY tests ./tests | ||
|
|
||
| # ensure entrypoint is executable | ||
| RUN chmod +x entrypoint.sh | ||
| # ensure entrypoint is executable and tests dir is writable | ||
| RUN chmod +x entrypoint.sh && \ | ||
| chown -R nobody:nogroup /app | ||
|
|
||
| ENTRYPOINT ["bats", "tests"] | ||
| USER nobody | ||
|
||
|
|
||
| ENTRYPOINT ["bats", "tests"] | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,8 @@ FROM $KIT_BASE_IMAGE | |||||||
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||||||||
| COPY --from=cosign-install /ko-app/cosign /usr/local/bin/cosign | ||||||||
|
|
||||||||
|
||||||||
| RUN mkdir -p /home/user/modelkit && chown -R nobody:nogroup /home/user |
Copilot
AI
Feb 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description does not mention the Docker USER changes in this file. This is a significant security-related change that switches the container to run as the nobody user instead of root (or the kit user from the base image). While this aligns with security best practices, such changes should be documented in the PR description, especially since this change has potential implications for container permissions and runtime behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description states that a "check-licenses" job was added, but the actual job name in the workflow is "check-security". While this is a minor discrepancy and the broader name "check-security" is arguably more accurate given that the job scans for vulnerabilities, secrets, misconfigurations, and licenses (not just licenses), the PR description should be updated to match the actual implementation.