Skip to content

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

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

fix(docker): support non-root base image#15
sagic-orca wants to merge 1 commit into
masterfrom
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 executed after the FROM line was failing with permission denied because the inherited user had no write access to the package cache.
  • Add USER root immediately after the FROM line so package installation and build steps run with the necessary privileges.
  • Drop back to USER orca just before the ENTRYPOINT to preserve runtime least-privilege security.

Test plan

  • Build the Docker image locally and confirm apk add completes without permission errors.
  • Verify the container process runs as orca (non-root) at runtime: docker run --rm <image> whoamiorca.
  • Confirm the action end-to-end behaviour is unchanged.

@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