René's URL Explorer Experiment


Title: fix: host-runner compatibility for tests and scripts by davdhacs · Pull Request #19712 · stackrox/stackrox · GitHub

Open Graph Title: fix: host-runner compatibility for tests and scripts by davdhacs · Pull Request #19712 · stackrox/stackrox

X Title: fix: host-runner compatibility for tests and scripts by davdhacs · Pull Request #19712 · stackrox/stackrox

Description: Description Fix tests and scripts to work on ubuntu-latest host runners (no container) in addition to CI container environments. All changes are backward-compatible — CI still passes in containers. This is a prerequisite for removing containers from unit-test jobs (#19678). Changes File Issue Fix rate_limited_logger.go Log path prefix /home/runner/work/ not recognized (container used /__w/) Add host runner prefix download_zip_test.go os.Stat("/root/evil.txt") returns ErrPermission on non-root (container ran as root) Accept ErrNotExist or ErrPermission detection_test.go Not a valid test if GHA runs without a container. Delete (path change based on isContainer, covered by local-roxctl bats tests) lib.sh bash 5.2+ treats & in ${var//pat/repl} as matched pattern (container had bash 5.1) Escape with \& (works on all versions 4.4-5.3, verified via docker) helpers.bash yq 4.52 adds --- separators in multi-doc output (container had yq 4.16) Add yq_multidoc helper that strips separators *-netpol-generate-*.bats Line index assertions broken by yq separators Use yq_multidoc Verification These changes run in the existing CI container workflow (no workflow changes in this PR). If all tests pass, the fixes are proven backward-compatible. Testing and quality CI results inspected Automated testing modified existing tests How I validated my change CI runs: A: in the existing rox-ci-image container, proving backward compatibility. B: without a container, passing on #19678 Partially generated by AI.

Open Graph Description: Description Fix tests and scripts to work on ubuntu-latest host runners (no container) in addition to CI container environments. All changes are backward-compatible — CI still passes in containers....

X Description: Description Fix tests and scripts to work on ubuntu-latest host runners (no container) in addition to CI container environments. All changes are backward-compatible — CI still passes in containers....

Opengraph URL: https://github.com/stackrox/stackrox/pull/19712

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fa0a98ae-1336-3e54-dab7-7aef2d17d93b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE730:38840C:9168B3:C538C2:6A4D4C4F
html-safe-nonce79ec84db86a3848d8d4ae06e9d1275368d29056f7bf5da06ed124de3b227991b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzMwOjM4ODQwQzo5MTY4QjM6QzUzOEMyOjZBNEQ0QzRGIiwidmlzaXRvcl9pZCI6IjY3OTM5ODU5NzQ0ODczMDUyOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3dd0393ff04ef3a02425b53c8b396eb1d97372458cdf77559be2c838c026ab57
hovercard-subject-tagpull_request:3472857003
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/stackrox/stackrox/pull/19712/files
twitter:imagehttps://avatars.githubusercontent.com/u/105243888?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/105243888?s=400&v=4
og:image:altDescription Fix tests and scripts to work on ubuntu-latest host runners (no container) in addition to CI container environments. All changes are backward-compatible — CI still passes in containers....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git
octolytics-dimension-user_id40638982
octolytics-dimension-user_loginstackrox
octolytics-dimension-repository_id434017296
octolytics-dimension-repository_nwostackrox/stackrox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id434017296
octolytics-dimension-repository_network_root_nwostackrox/stackrox
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackrox/stackrox/pull/19712/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F19712%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F19712%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=stackrox%2Fstackrox
Reloadhttps://github.com/stackrox/stackrox/pull/19712/files
Reloadhttps://github.com/stackrox/stackrox/pull/19712/files
Reloadhttps://github.com/stackrox/stackrox/pull/19712/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
stackrox https://github.com/stackrox
stackroxhttps://github.com/stackrox/stackrox
Notifications https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Fork 181 https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Star 1.3k https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Code https://github.com/stackrox/stackrox
Issues 52 https://github.com/stackrox/stackrox/issues
Pull requests 549 https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality 0 https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Code https://github.com/stackrox/stackrox
Issues https://github.com/stackrox/stackrox/issues
Pull requests https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
davdhacshttps://github.com/davdhacs
masterhttps://github.com/stackrox/stackrox/tree/master
davdhacs/host-runner-test-fixeshttps://github.com/stackrox/stackrox/tree/davdhacs/host-runner-test-fixes
Conversation 12 https://github.com/stackrox/stackrox/pull/19712
Commits 4 https://github.com/stackrox/stackrox/pull/19712/commits
Checks 104 https://github.com/stackrox/stackrox/pull/19712/checks
Files changed https://github.com/stackrox/stackrox/pull/19712/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
fix: host-runner compatibility for tests and scripts https://github.com/stackrox/stackrox/pull/19712/files#top
Show all changes 4 commits https://github.com/stackrox/stackrox/pull/19712/files
b9c014f fix: host-runner compatibility for tests and scripts davdhacs Mar 31, 2026 https://github.com/stackrox/stackrox/pull/19712/commits/b9c014f6e416c90b38e02376d60a0579d50cd262
3f50506 Merge remote-tracking branch 'origin/master' into davdhacs/host-runne… davdhacs Mar 31, 2026 https://github.com/stackrox/stackrox/pull/19712/commits/3f50506fe2c93ae04cdd37e1d7a43fa40d5ba651
fe90602 Merge remote-tracking branch 'origin/master' into davdhacs/host-runne… davdhacs Apr 1, 2026 https://github.com/stackrox/stackrox/pull/19712/commits/fe90602ec07dac71f71c8e9c9443a589cec6ce41
58ea483 fix: use sed instead of grep -v in yq_multidoc davdhacs Apr 1, 2026 https://github.com/stackrox/stackrox/pull/19712/commits/58ea4834ab9582f09ee92d722eee3fbeb2af7b29
Clear filters https://github.com/stackrox/stackrox/pull/19712/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
detection_test.go https://github.com/stackrox/stackrox/pull/19712/files#diff-4527990f493d8e3fe922cbb8556a98c575022648f3f72766ce9ebe06f674d930
rate_limited_logger.go https://github.com/stackrox/stackrox/pull/19712/files#diff-e20dbe9bda46deb5d2dfe36073e73e169a4339399ce06ef23924175710706285
download_zip_test.go https://github.com/stackrox/stackrox/pull/19712/files#diff-4320b95f3044828b989737cb5d80c5f2d50f2212b43a70fc34c7fff9c6d82b65
lib.sh https://github.com/stackrox/stackrox/pull/19712/files#diff-ad45bac7d580b4045818e218bec2c8c5aefa845e151c07af5d93cd6151d3baa2
helpers.bash https://github.com/stackrox/stackrox/pull/19712/files#diff-5da64f5b39f299da4e2f06d05b8849bcbca568067881c56cea169e617e98a372
roxctl-netpol-generate-development.bats https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
roxctl-netpol-generate-release.bats https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
pkg/containers/detection_test.gohttps://github.com/stackrox/stackrox/pull/19712/files#diff-4527990f493d8e3fe922cbb8556a98c575022648f3f72766ce9ebe06f674d930
View file https://github.com/stackrox/stackrox/blob/2837c9bf5da9201fc49e0610059239e77dba33cb/pkg/containers/detection_test.go
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
pkg/logging/rate_limited_logger.gohttps://github.com/stackrox/stackrox/pull/19712/files#diff-e20dbe9bda46deb5d2dfe36073e73e169a4339399ce06ef23924175710706285
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/pkg/logging/rate_limited_logger.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-e20dbe9bda46deb5d2dfe36073e73e169a4339399ce06ef23924175710706285
https://github.com/stackrox/stackrox/pull/19712/files#diff-e20dbe9bda46deb5d2dfe36073e73e169a4339399ce06ef23924175710706285
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L42
roxctl/common/zipdownload/download_zip_test.gohttps://github.com/stackrox/stackrox/pull/19712/files#diff-4320b95f3044828b989737cb5d80c5f2d50f2212b43a70fc34c7fff9c6d82b65
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/roxctl/common/zipdownload/download_zip_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-4320b95f3044828b989737cb5d80c5f2d50f2212b43a70fc34c7fff9c6d82b65
https://github.com/stackrox/stackrox/pull/19712/files#diff-4320b95f3044828b989737cb5d80c5f2d50f2212b43a70fc34c7fff9c6d82b65
https://github.com/stackrox/stackrox/pull/19712/files#diff-4320b95f3044828b989737cb5d80c5f2d50f2212b43a70fc34c7fff9c6d82b65
scripts/ci/lib.shhttps://github.com/stackrox/stackrox/pull/19712/files#diff-ad45bac7d580b4045818e218bec2c8c5aefa845e151c07af5d93cd6151d3baa2
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/scripts/ci/lib.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-ad45bac7d580b4045818e218bec2c8c5aefa845e151c07af5d93cd6151d3baa2
https://github.com/stackrox/stackrox/pull/19712/files#diff-ad45bac7d580b4045818e218bec2c8c5aefa845e151c07af5d93cd6151d3baa2
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L47
tests/roxctl/bats-tests/helpers.bashhttps://github.com/stackrox/stackrox/pull/19712/files#diff-5da64f5b39f299da4e2f06d05b8849bcbca568067881c56cea169e617e98a372
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/tests/roxctl/bats-tests/helpers.bash
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-5da64f5b39f299da4e2f06d05b8849bcbca568067881c56cea169e617e98a372
https://github.com/stackrox/stackrox/pull/19712/files#diff-5da64f5b39f299da4e2f06d05b8849bcbca568067881c56cea169e617e98a372
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L47
tests/roxctl/bats-tests/local/roxctl-netpol-generate-development.batshttps://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/tests/roxctl/bats-tests/local/roxctl-netpol-generate-development.bats
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/pull/19712/files#diff-0b8355763069fbd7c4ca4a2ff398541442cede8cb9b4b9a1a7a91351b965deec
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L47
tests/roxctl/bats-tests/local/roxctl-netpol-generate-release.batshttps://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
View file https://github.com/stackrox/stackrox/blob/58ea4834ab9582f09ee92d722eee3fbeb2af7b29/tests/roxctl/bats-tests/local/roxctl-netpol-generate-release.bats
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19712/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
https://github.com/stackrox/stackrox/pull/19712/files#diff-f3299a834adf0c267a495edbc6b6de26427d931f60bf770baea729a125145228
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19712/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.