Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.07 KB

File metadata and controls

52 lines (40 loc) · 1.07 KB
page_title forgejo_personal_access_token Data Source - forgejo
subcategory
description Forgejo personal access token data source.

forgejo_personal_access_token (Data Source)

Forgejo personal access token data source.

Example Usage

terraform {
  required_providers {
    forgejo = {
      source = "svalabs/forgejo"
    }
  }
}

provider "forgejo" {
  host = "http://localhost:3000"
}

# Existing user
data "forgejo_user" "test_user" {
  login = "test_user"
}

# Existing personal access token
data "forgejo_personal_access_token" "test_token" {
  user = data.forgejo_user.test_user.login
  name = "test token"
}

Schema

Required

  • name (String) Name of the personal access token.
  • user (String) Name of the user.

Read-Only

  • id (Number) ID of the personal access token.
  • scopes (Set of String) Scopes of the personal access token.
  • token_last_eight (String) Last eight characters of the personal access token.