Skip to content

fix(docker): support non-root base image#56

Open
sagic-orca wants to merge 1 commit into
mainfrom
fix/non-root-apk-install
Open

fix(docker): support non-root base image#56
sagic-orca wants to merge 1 commit into
mainfrom
fix/non-root-apk-install

Conversation

@sagic-orca

Copy link
Copy Markdown
Collaborator

Summary

  • The ghcr.io/orcasecurity/orca-cli:1 base image now sets USER orca (non-root) at the end of its build.
  • Any RUN apk add after the FROM line was failing with permission denied.
  • Added USER root immediately after FROM to allow package installation during build.
  • Dropped back to USER orca before ENTRYPOINT to preserve runtime security (least-privilege principle).

Test plan

  • Verify the Docker image builds successfully without permission errors on apk add
  • Verify the container runs as the orca non-root user at runtime
  • Confirm the action works end-to-end with the updated image

@sonarqubecloud

Copy link
Copy Markdown

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants