Skip to content

Add github-actions ip addresses on datasource github_ip_ranges #351

Closed as not planned

Description

@bkamin29

Hello,

Can you add the publics ip addresses used by github-actions as result of the datrasource github_ip_ranges ?

Terraform Version

▶ terraform version
Terraform v0.12.20
+ provider.aiven (unversioned)
+ provider.github v2.3.2
+ provider.google v2.19.0
+ provider.google-beta v3.7.0
+ provider.grafana v1.5.0
+ provider.kubernetes v1.10.0
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.random v2.2.1
+ provider.template v2.1.2
+ provider.ultradns v0.1.1

Affected Resource(s)

Please list the resources as a list, for example:

  • github_ip_ranges

Activity

  1. benj-fletch commented on Apr 1, 2020

    @benj-fletch
    Contributor

    Hi @benesis002 I'm not exactly sure what you are after in this request - based on your TF modules I'm guessing you need the IP addresses for some whitelist to allow deployment?

    I don't believe that the Github Meta API makes available the IP addresses it uses for hosted runners, though some digging has revealed that they are hosted on Azure and use the public IP addresses of the MS datacentres.

    Does this help your use case? If not are you able to provide some more context around what you require the IP addresses for?

  2. bkamin29 commented on Apr 1, 2020

    @bkamin29
    Author

    Hi @benesis002 I'm not exactly sure what you are after in this request - based on your TF modules I'm guessing you need the IP addresses for some whitelist to allow deployment?

    I don't believe that the Github Meta API makes available the IP addresses it uses for hosted runners, though some digging has revealed that they are hosted on Azure and use the public IP addresses of the MS datacentres.

    Does this help your use case? If not are you able to provide some more context around what you require the IP addresses for?

    Hello,

    Yes, i want to use this datasource result to create firewall rules.
    And yes maybe github action use Azure serverless service, so Github don't have a public ip address static list :/

  3. elliotchaim commented on Sep 17, 2020

    @elliotchaim

    This would be a great feature. Right now I'm forced to either remove network security rules, or wrap my terraform apply in a bash script which manually adds the current IP. But then terraform will surely remove the new IP when it applies the configuration. So I'll have to pass the current IP into terraform as well. It's messy and hard to maintain

  4. added
    Type: Feature
    on Dec 8, 2020
  5. dodwmd commented on Jan 20, 2021

    @dodwmd

    A work around until it's supported:

    data "http" "github-meta" {
      url = "https://api.github.com/meta"
      request_headers = {
        Accept = "Accept: application/vnd.github.v3+json"
      }
    }
    locals {
      github_actions_ips = jsondecode(data.http.github-meta.body)["actions"]
    }
    output "github_actions_ips" {
      value = local.github_actions_ips
    }
    
  6. github-actions commented on Dec 10, 2022

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  7. added
    Status: Stale
    on Dec 10, 2022
  8. removed
    Status: Stale
    on Dec 13, 2022
  9. github-actions commented on Apr 24, 2024

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  10. added
    Status: Stale
    on Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleType: Featured/ip_ranges

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions