Skip to content

"github_team_repository.write.0: At least one permission expected from permissions map." #131

Closed as not planned

Description

@benabineri

Terraform Version

Terraform v0.11.7

  • provider.github v1.1.0

Affected Resource(s)

  • github_team_repository

Terraform Configuration Files

resource "github_repository" "repository" {
  name         = "${var.name}"
  description  = "${local.description}"
  homepage_url = "${local.homepage_url}"

  private            = true
  has_issues         = true
  has_wiki           = false
  allow_merge_commit = false
  allow_squash_merge = true
  allow_rebase_merge = true
  has_downloads      = false
  auto_init          = true
  archived           = "${var.archived}"
}

resource "github_team_repository" "write" {
  team_id    = "${element(var.write_teams, count.index)}"
  repository = "${github_repository.repository.name}"
  permission = "push"

  count = "${var.write_teams_count}"
}

Debug Output

Can provide.

Panic Output

No panic.

Expected Behavior

github_team_repository.write permission should be set.

Actual Behavior

Fails with the error below (but only for some repos)

* module.<module name>.github_team_repository.write[0]: github_team_repository.write.0: At least one permission expected from permissions map.

Steps to Reproduce

Try to create a github_team_repository.

Thanks.

Activity

  1. radeksimko commented on Aug 13, 2018

    @radeksimko
    Contributor

    Hi @benabineri
    thanks for the report.

    I was unfortunately unable to reproduce the bug though. Do you mind providing the debug log from terraform commands you ran (minus any secrets)?

    You can create a gist (instead of pasting it directly to the thread here). Also feel free to use our GPG key to encrypt it if you feel the need for it.

    Thanks.

  2. added
    Type: Bug
    on Aug 13, 2018
  3. github-actions commented on Dec 12, 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!

  4. added
    Status: Stale
    on Dec 12, 2022
  5. added
    Status: Needs info
    on Dec 12, 2022
  6. removed
    Status: Stale
    on Dec 13, 2022
  7. github-actions commented on Apr 25, 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!

  8. added
    Status: Stale
    on Apr 25, 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

    Awaiting responseStatus: Needs infoStatus: StaleType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions