STRY64482225: HTTPS Proxy Support for ServiceNow DevOps GitHub Actions - #16
Open
maheshganjiSnc wants to merge 11 commits into
Open
STRY64482225: HTTPS Proxy Support for ServiceNow DevOps GitHub Actions#16maheshganjiSnc wants to merge 11 commits into
maheshganjiSnc wants to merge 11 commits into
Conversation
- Add create-release.yml for production releases - Add test-release.yml for safe release testing - Add WORKFLOWS.md with comprehensive workflow documentation - Automate tag creation, build, and GitHub release publishing
MAINT:Add automated release workflows and documentation
* updated readme file (#8) Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> * STRY59060031: Upgrading ServiceNow DevOps GitHub Actions to Node version 20. (#7) * updated readme file * MAINT: Test custom action with node20 * Upgraded dependency versions * rebuild * update vlcc/ncc version --------- Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com> * Add CodeQL security scanning workflow - Run weekly security scans every Monday - Scan pull requests targeting main branch - Use security-extended query suite for comprehensive analysis * MAINT:Enable CodeQL scanning for dev branch PRs * Update README.md --------- Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com> Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com> Co-authored-by: nitin-parashar <nitin.parashar@servicenow.com>
…ependencies and workflow versions
…ate proxies Axios built-in proxy handling uses absolute-form HTTP requests which enterprise proxies (e.g. Visa) reject with 400 Bad Request. This adds https-proxy-agent to force proper CONNECT tunneling when HTTPS_PROXY or HTTP_PROXY environment variables are set. Changes: - Added https-proxy-agent 7.0.6 dependency - Created proxy-aware Axios instance via createHttpClient() - Replaced bare axios calls with httpClient for CONNECT tunnel support - Zero behavior change when no proxy env vars are set - Rebuilt dist/index.js bundle
…b Action to Marketplace with Node 24 runtime support. (#15) * updated readme file (#8) Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> * STRY59060031: Upgrading ServiceNow DevOps GitHub Actions to Node version 20. (#7) * updated readme file * MAINT: Test custom action with node20 * Upgraded dependency versions * rebuild * update vlcc/ncc version --------- Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com> * Add CodeQL security scanning workflow - Run weekly security scans every Monday - Scan pull requests targeting main branch - Use security-extended query suite for comprehensive analysis * MAINT:Enable CodeQL scanning for dev branch PRs * Update README.md * STRY63592000: Migrate Node.js runtime from node20 to node24 (#14) * STRY63281042: Upgrade Node.js runtime from node20 to node24, update dependencies and workflow versions * STRY63592000: Pin dependency versions and rebuild dist for Node 24 migration --------- Co-authored-by: Cascade Bot <cascade@example.com> --------- Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com> Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com> Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com> Co-authored-by: nitin-parashar <nitin.parashar@servicenow.com> Co-authored-by: Cascade Bot <cascade@example.com>
…(form-data 4.0.6, es-object-atoms 1.1.2)
- Add proxy-test.yml: example workflow demonstrating HTTPS proxy usage with configurable proxy URL via HTTPS_PROXY_URL secret - Update README.md: add HTTPS Proxy Support section documenting supported environment variables (HTTPS_PROXY, https_proxy, HTTP_PROXY, http_proxy), proxy URL format, and usage example
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.
HTTPS Proxy Support for ServiceNow DevOps GitHub Actions
Summary
Adds HTTPS proxy support enabling customers behind corporate proxies to route all HTTP/HTTPS traffic through their proxy server using the
https-proxy-agentnpm package.Changes
HttpsProxyAgentto tunnel allaxiosrequests via HTTP CONNECTHTTPS_PROXY,https_proxy,HTTP_PROXY,http_proxyhttp://<host>:<port>andhttp://<user>:<pass>@<host>:<port>HTTPS_PROXY_URLas a configurable secretnode24How it works
When a proxy environment variable is set, the action creates an
HttpsProxyAgentand attaches it to theaxiosHTTP client. All requests to ServiceNow are tunneled via HTTP CONNECT. If no proxy variable is set, the action connects directly — no breaking changes.Testing