Skip to content

[BUG]: Not able to Import github_actions_environment_secret #2461

Closed as not planned

Description

@whgiles

Expected Behavior

I should be able to run:

Terraform import '<module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>'

or use and import block

import {
    to = <module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>
    id = "<repository>/<environment>/<secret_name>"
}

Actual Behavior

After I run an import command

Error: Configuration for import target does not exist

The configuration for the given import <module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name> does not exist. All target instances must have an associated configuration to be imported.

Terraform Version

Terraform v1.9.8
on darwin_arm64

  • provide registry.terraform.io/hashicorp/github v6.3.1

Affected Resource(s)

github_actions_environment_secret

Terraform Configuration Files

No response

Steps to Reproduce

Terraform import '<module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>'

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Bug
    on Nov 13, 2024
  2. whgiles commented on Nov 13, 2024

    @whgiles
    Author

    This issue is related to issue #1124
    Also a similar fix was mode in PR #1763.

  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Dec 23, 2024
  4. github-actions commented on Aug 11, 2025

    @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!

  5. added
    Status: Stale
    on Aug 11, 2025
  6. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Aug 19, 2025
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: StaleStatus: TriageType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions