Skip to content

Unable to configure Trusted Publishing for Github with IP Allow List enabled #12251

@gz

Description

@gz

Current Behavior

When trying to configure Trusted Publishing for a crate that is in a repo which is behind a Github IP allow lists I get the following error on crates.io

Image
  • As a workaround, the IP whitelisting can be temporarily disabled to complete the setup step on crates.io but it's not ideal obviously (publishing afterwards works even with allowlists enabled)
  • As a reference PyPi is able configure the same thing just fine while github IP allowlist is enabled
  • I tried whitelisting the crates.io IPs that I got from dig but it didn't work (maybe you could publish the IP's you're using to do any verification in this step as part of your docs or set it directly in the github crates.io app because there is an option in github to accept advertised IP ranges from apps)
crates.io.		26	IN	A	18.239.199.51
crates.io.		26	IN	A	18.239.199.105
crates.io.		26	IN	A	18.239.199.106
crates.io.		26	IN	A	18.239.199.91

Expected Behavior

Expected behavior would be that I can configure this in crates.io without the error while IP allowlist is enabled

Steps To Reproduce

No response

Environment

  • Browser:
  • OS:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions