Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RequestError when github org enabled with IP Allowlist #767

Open
pavankumar-emmadi-partior opened this issue Dec 27, 2023 · 3 comments
Open

Comments

@pavankumar-emmadi-partior
Copy link

pavankumar-emmadi-partior commented Dec 27, 2023

Current behavior

[semantic-release] › ✘ An error occurred while running semantic-release: RequestError [HttpError]: Although you appear to have the correct authorization credentials, thexxx organization has an IP allow list enabled, and your IP address is not permitted to access this resource. at /usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/@octokit/request/dist-node/index.js:112:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async requestWithGraphqlErrorHandling (/usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/@octokit/plugin-retry/dist-node/index.js:71:20) at async Job.doExecute (/usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/bottleneck/light.js:405:18) { status: 403,

Expected behavior

semantic-release should allow publish to the orgs with IP Allowlist enabled via proxy config.
proxy: { host: 'xxxxx', port: xxx, secureProxy: true }

semantic-release version

22.0.5

CI environment

google cloudbuild

Plugins used

github

semantic-release configuration

[ "@semantic-release/github", { "assets": [ "CHANGELOG.md" ], "proxy": { "host": "xxxx", "port": xxxx, "secureProxy": true } } ]

OR

[ "@semantic-release/github", { "assets": [ "CHANGELOG.md" ], "proxy": "http://XX.XX.XX.XX:XXXX/" } ]

CI logs

[semantic-release] › ✘ An error occurred while running semantic-release: RequestError [HttpError]: Although you appear to have the correct authorization credentials, thexxx organization has an IP allow list enabled, and your IP address is not permitted to access this resource. at /usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/@octokit/request/dist-node/index.js:112:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async requestWithGraphqlErrorHandling (/usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/@octokit/plugin-retry/dist-node/index.js:71:20) at async Job.doExecute (/usr/local/nvm/versions/node/v18.18.0/lib/node_modules/semantic-release/node_modules/bottleneck/light.js:405:18) { status: 403,

@pavankumar-emmadi-partior
Copy link
Author

pavankumar-emmadi-partior commented Dec 27, 2023

I believe the api requests not going through the proxy.

@travi
Copy link
Member

travi commented Dec 27, 2023

Likely a duplicate of #696. We would welcome help with further investigation or a PR to fix/document better

@vmorales-2920
Copy link

Facing the same issues, have you found a solution?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants