Skip to content

fix: Make install-infractl work when using container.image#89

Merged
msugakov merged 2 commits intomainfrom
misha/infractl-update-path
Mar 16, 2026
Merged

fix: Make install-infractl work when using container.image#89
msugakov merged 2 commits intomainfrom
misha/infractl-update-path

Conversation

@msugakov
Copy link
Contributor

@msugakov msugakov commented Mar 13, 2026

Description

I noticed that install-infractl fails when the job executes not just with runs-on: ubuntu-latest but also with

    container:
      image: quay.io/stackrox-io/apollo-ci:stackrox-ui-test-0.5.3

The reasons aren't entirely clear because this image has ~/.local/bin in its $PATH:

$ echo $PATH
/root/.local/bin:/root/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/pgsql-14/bin:/opt/gradle/bin

$ echo $HOME
/root

Nevertheless, updating $PATH helps and so here's the suggested fix.

Testing

See https://github.com/stackrox/test-gh-actions/pull/246/changes.

@msugakov msugakov requested a review from a team as a code owner March 13, 2026 18:42
Why having to enable debug if this looks harmless?
@msugakov msugakov merged commit c7ba6ec into main Mar 16, 2026
3 checks passed
@msugakov msugakov deleted the misha/infractl-update-path branch March 16, 2026 10:01
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