René's URL Explorer Experiment


Title: Inherit environment variables, volumes, and volume mounts from parent in cascading scans by EndPositive · Pull Request #538 · secureCodeBox/secureCodeBox · GitHub

Open Graph Title: Inherit environment variables, volumes, and volume mounts from parent in cascading scans by EndPositive · Pull Request #538 · secureCodeBox/secureCodeBox

X Title: Inherit environment variables, volumes, and volume mounts from parent in cascading scans by EndPositive · Pull Request #538 · secureCodeBox/secureCodeBox

Description: Description This PR ensures that child scans inherit environment variables, volumes, and volume mounts (hereafter named as 'spec') from their parent scan (499c077, 0f224fa). The spec from the applied cascading rule is merged with those from the parent scan (cascading rule spec takes precedence 3391d74). Finally, to ensure that the spec from the cascading rule is only applied to the currently matched scan (and not its children), the child scan purges the cascading rule spec from the parent scan when inheriting them (b7b1856). This behavior is useful in cases where you want to set the http_proxy variable for cascaded scans or when you want to mount CA certificates into cascaded scans. I also considered retrieving the spec from the root scan, but currently there's no way (to my knowledge) to accurately determine the root scan in the cascading scan hook). Checklist Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests. Make sure npm test runs for the whole project. Make codeclimate checks happy

Open Graph Description: Description This PR ensures that child scans inherit environment variables, volumes, and volume mounts (hereafter named as 'spec') from their parent scan (499c077, 0f224fa). The spec from t...

X Description: Description This PR ensures that child scans inherit environment variables, volumes, and volume mounts (hereafter named as 'spec') from their parent scan (499c077, 0f224fa). The spe...

Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/pull/538

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:69de2a0a-a71e-22bf-c522-bbf6adbbae0a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD726:F3DEB:BAC798:F81BAB:698FB255
html-safe-nonce45354a8b2ba0a5d35e04f999568f9882911c407d091c4b4b8715632bb5279b52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzI2OkYzREVCOkJBQzc5ODpGODFCQUI6Njk4RkIyNTUiLCJ2aXNpdG9yX2lkIjoiNjI5NDc4MzY3MzcxMjQ4OTA0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd8746ad202a51b9d6c2429e6d29f3b56c3be2060759a20588af61f66c94d218c
hovercard-subject-tagpull_request:683034744
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/secureCodeBox/secureCodeBox/pull/538/files
twitter:imagehttps://avatars.githubusercontent.com/u/25148195?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/25148195?s=400&v=4
og:image:altDescription This PR ensures that child scans inherit environment variables, volumes, and volume mounts (hereafter named as 'spec') from their parent scan (499c077, 0f224fa). The spec from t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6df359c0989bb4eb7656e0047ab7a57a6657880db88f5a202f4e51ddbc3dfce8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git
octolytics-dimension-user_id34573705
octolytics-dimension-user_loginsecureCodeBox
octolytics-dimension-repository_id80711933
octolytics-dimension-repository_nwosecureCodeBox/secureCodeBox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id80711933
octolytics-dimension-repository_network_root_nwosecureCodeBox/secureCodeBox
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
released09a7639fca70dcd33f2b127cabd422a73b10aef
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/secureCodeBox/secureCodeBox/pull/538/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsecureCodeBox%2FsecureCodeBox%2Fpull%2F538%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2FsecureCodeBox%2FsecureCodeBox%2Fpull%2F538%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=secureCodeBox%2FsecureCodeBox
Reloadhttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
Reloadhttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
Reloadhttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
secureCodeBox https://github.com/secureCodeBox
secureCodeBoxhttps://github.com/secureCodeBox/secureCodeBox
Notifications https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Fork 179 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Star 955 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Code https://github.com/secureCodeBox/secureCodeBox
Issues 71 https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests 4 https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects 1 https://github.com/secureCodeBox/secureCodeBox/projects
Security 1 https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
Code https://github.com/secureCodeBox/secureCodeBox
Issues https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects https://github.com/secureCodeBox/secureCodeBox/projects
Security https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2Fnew%2Fchoose
J12934https://github.com/J12934
secureCodeBox:mainhttps://github.com/secureCodeBox/secureCodeBox/tree/main
Conversation 11 https://github.com/secureCodeBox/secureCodeBox/pull/538
Commits 20 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits
Checks 0 https://github.com/secureCodeBox/secureCodeBox/pull/538/checks
Files changed https://github.com/secureCodeBox/secureCodeBox/pull/538/files
Please reload this pagehttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
Inherit environment variables, volumes, and volume mounts from parent in cascading scans https://github.com/secureCodeBox/secureCodeBox/pull/538/files#top
Show all changes 20 commits https://github.com/secureCodeBox/secureCodeBox/pull/538/files
499c077 Cascading Scans: merge environment variables from parent scan and cas… EndPositive Jun 24, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/499c077cd35ce56151c418a1048ebafdb921e75d
0f224fa Cascading Scans: merge volumes and volumeMounts from parent scan and … EndPositive Jun 24, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/0f224fa99d223713b82924b1b1b7335bf87401fd
3391d74 Cascading Scans: CascadingRule's spec overwrites scan's spec EndPositive Jun 25, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/3391d747c25a89117b1c659a3d50c6a61b6fedec
b7b1856 Cascading Scans: purge cascaded rules spec from parent scan EndPositive Jun 25, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/b7b1856d5cf48748f71ed10e4f8fad3f1548bb5b
5307a1a Cascading Scans: fix error when cascadingRule has no spec EndPositive Jun 30, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/5307a1a0b733aee3f71700a878915c53d73f03a2
dd5f864 Merge branch 'main' into cascading-scan-spec-merge-inherit EndPositive Jul 12, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/dd5f86490e21c5ecb33a44c73466e27f62018449
94bed3a Cascading Scans: fix tests when running with ts-jest EndPositive Jul 12, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/94bed3af79101d95be5a77db966028a8560c098b
8312973 Cascading Scans: add inheritEnv & inheritVolumes (disabled by default) EndPositive Jul 12, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/8312973bec17005f5ca0ec1a8393de2157ed1771
1979c3a Operator: add inheritVolumes and inheritEnv to CRDs EndPositive Jul 12, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/1979c3aab1fb84a6cff5f9a89fda4d26e1b43426
d15f02e Cascading Scans: extract functions to make codeclimate happy EndPositive Jul 12, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/d15f02e52d604b172743078d12559ef7ed45b5c9
efed9f8 Merge branch 'main' into cascading-scan-spec-merge-inherit JohannesZahn Jul 13, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/efed9f8d001ecfeaa96eac983a1bbd2e96317425
8501b73 Cascading Scans: updates from code reviews EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/8501b73848d1e4ec39b49eb385b2a6e58327522e
2ded643 Cascading Scans: tests remove intermediate assertions on cascadedScans EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/2ded643a5b5bcaca665e1e2984f6bf78c73adcd4
ffa294f Cascading Scans: create scan definition in `getCascadingScans` and up… EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/ffa294f1d839baf3551e9e02e8ef899f01fe5834
c538866 Cascading Scans: update getCascadedRuleForScan to use existing chain … EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/c538866722dd6ce10ba9affef1aee38dce3a74ea
934941b Cascading Scans: get rid of redundant ExtendedScanSpec EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/934941b61cc432fc086c5815e6ef7a5dde05c2ea
c99094d Operator: update Helm CRD's EndPositive Jul 21, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/c99094d76187bfcc319f6cf0ae0381ac284215e8
e410e6a Fix incorrect expected / actual ordering in assertions J12934 Jul 22, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/e410e6ac1ddce2c12667a5387ab8bb6fa84f6196
fc3b806 Merge branch 'main' into pr/EndPositive/538 J12934 Jul 22, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/fc3b80636e95c35539868666f92d665421034766
d4856d8 Trigger CI J12934 Jul 22, 2021 https://github.com/secureCodeBox/secureCodeBox/pull/538/commits/d4856d8d444f2e61da621e6471000a9412280dc0
Clear filters https://github.com/secureCodeBox/secureCodeBox/pull/538/files
Please reload this pagehttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
Please reload this pagehttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
hook.test.js https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-d6ded739603654441dbbe4da5d54022d49c70665f1ca86ca20b7b16ec2f6c824
hook.ts https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
scan-helpers.ts https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
DefectDojoFindingToSecureCodeBoxMapperTest.java https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-c8460981d72819d859e4accccc48283177776602a2573a4213877b70c054fcee
scan_types.go https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-7bd70c1a539e53393c9a4f5001447889dffcad04de11abefb3676dc8808897c0
cascading.securecodebox.io_cascadingrules.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-cae954cc61d44a1aed469d52e06038d2d9603e77a7b8a5e2c4adede662c8975a
execution.securecodebox.io_scans.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-45034fed31dc57722a159d07d3e4e40b67370396468aaa7a03aa4bc42efdb950
execution.securecodebox.io_scheduledscans.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-c71483d8357da2397574455ba10512d6fce690dfc7634c220d697a7c52251a67
cascading.securecodebox.io_cascadingrules.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-b5b2c75480cbd4675fa2eaf691acfb404be84dd4fc30f9a206f469e7a9c2648c
execution.securecodebox.io_scans.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-8b8bc653ee4556f3834c4bc8f3da9a18257f073c1a248cd36dbffe1ddcdf09cc
execution.securecodebox.io_scheduledscans.yaml https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-27938938794a03cd18ad61acd19690d684101f8b41eb0690e9bc846dd06eabaf
hooks/cascading-scans/hook/hook.test.jshttps://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-d6ded739603654441dbbe4da5d54022d49c70665f1ca86ca20b7b16ec2f6c824
View file https://github.com/secureCodeBox/secureCodeBox/blob/d4856d8d444f2e61da621e6471000a9412280dc0/hooks/cascading-scans/hook/hook.test.js
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/secureCodeBox/secureCodeBox/pull/538/files
hooks/cascading-scans/hook/hook.tshttps://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
View file https://github.com/secureCodeBox/secureCodeBox/blob/d4856d8d444f2e61da621e6471000a9412280dc0/hooks/cascading-scans/hook/hook.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/secureCodeBox/secureCodeBox/pull/538/{{ revealButtonHref }}
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-37fa5acf6fd9b9f023797844a0e95355a2606dbe2cf960ed4908f205cc9e5993
hooks/cascading-scans/hook/scan-helpers.tshttps://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
View file https://github.com/secureCodeBox/secureCodeBox/blob/d4856d8d444f2e61da621e6471000a9412280dc0/hooks/cascading-scans/hook/scan-helpers.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/secureCodeBox/secureCodeBox/pull/538/{{ revealButtonHref }}
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
https://github.com/secureCodeBox/secureCodeBox/pull/538/files#diff-0f0d23f851644e5bf553f3fc75b8a4aaae080d087f2004105d384ad784bb08e8
Please reload this pagehttps://github.com/secureCodeBox/secureCodeBox/pull/538/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.