Repository navigation
ci: set an explicit PATH for job containers - #834
Merged
Merged
Conversation
rockylinux:9 now resolves to the KIWI-built 9.9 image, whose config sets no PATH. The runner prepends tool paths (e.g. from setup-node) to the container's PATH, so after setup-node the step PATH holds only the Node.js directory and every `shell: bash` step fails with `exec: "bash": executable file not found in $PATH`. Pass the standard PATH via container.env in the e2e `executables` and `npm` jobs, and in `generate-binary` so the Linux executable build does not break the same way if redhat/ubi8 drops PATH. Matrix entries without a container keep running on the host: the runner treats an empty container image as no container.
Runs deploy.yml's build and generate-binary steps without publishing, to exercise the new container block. To be removed before merge.
Contributor
Author
|
Verified the Commit 1d96066 added a temporary push-triggered workflow. It copied
Commit 0e27159 removed the temporary workflow. The PR diff is back to |
aborovsky
marked this pull request as ready for review
November 26, 2026 09:06
shevchenkov-neuralegion
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
E2E runs now fail on every job that runs in a
rockylinux:9container:npm (ubuntu-latest, 24),npm (ubuntu-latest, 26)andexecutables (ubuntu-latest, rockylinux:9, …). Each one fails on the firstshell: bashstep aftersetup-node(npm ci -q):Example: https://github.com/BrightSec/bright-cli/actions/runs/45585928242. The nested E2E run of the
v13.18.0-next.1deploy fails the same way.Cause
On 2026-11-17 Docker Hub moved
rockylinux:9from 9.3.20231119 (sha256:d7be1c09…, Dockerfile-built) to 9.9.20261112 (sha256:03303863…, KIWI-built). The old image config setPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. The new one only setscontainer=oci.bashis still in the image at/usr/bin/bash.The runner reads the container's
PATHfromdocker inspectand prepends the paths that actions add to it. Aftersetup-node, the stepPATHtherefore holds only the Node.js directory. Steps beforesetup-nodedon't pass aPATH, so they still work (for example, thednfstep withshell: sh).Change
test-cli.yml(executables,npm):containerbecomes a mapping withimage: ${{ matrix.container }}and an explicitenv.PATH.deploy.yml(generate-binary): the sameenv.PATHfor theredhat/ubi8Linux executable build. The current ubi8 image still setsPATH, so this only prevents the same breakage if it drops it later.Matrix entries without a container (macOS, Windows, host
ubuntu-latest) keep running on the host, because the runner treats an empty container image as no container (PipelineTemplateConverter.ConvertToJobContainer). Forubuntu:*,rockylinux:8andredhat/ubi8, the value is the same as thePATHalready baked into those images.Validation
actionlintpasses (apart from its outdated runner-label list formacos-15/macos-15-intel)workflow_dispatchon this branch):rockylinux:9jobs green, non-container jobs still run on the host: https://github.com/BrightSec/bright-cli/actions/runs/45599732559generate-binary(build+generate-binarycopied into a temporary push workflow, without publishing or signing; since removed): https://github.com/BrightSec/bright-cli/actions/runs/45637529271