Skip to content

feat: avoid sudo when running as root - #682

Merged
varunsh-coder merged 5 commits into
step-security:rc-42from
rohan-stepsecurity:rp/feat/codebuild-self-v2
Aug 14, 2026
Merged

varunsh-coder merged 5 commits into
step-security:rc-42from
rohan-stepsecurity:rp/feat/codebuild-self-v2

Conversation

@rohan-stepsecurity

Copy link
Copy Markdown
Member

No description provided.

CodeBuild containers run as root without the `sudo` binary. Add a
`useDirectPrivileges` flag to bypass `sudo` for directory creation,
`chown`, and agent execution on CodeBuild. Also skip installation
when running inside a container without root privileges.
@rohan-stepsecurity
rohan-stepsecurity changed the base branch from main to rc-42 August 13, 2026 08:10
Regenerated dist bundles with ncc on Node 24 to resolve the
dist/pre/index.js.map conflict.
@varunsh-coder
varunsh-coder merged commit 40b99cf into step-security:rc-42 Aug 14, 2026
3 checks passed
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