This resource allows you to set the access level of a non-public repositories actions and reusable workflows for use in other repositories. You must have admin access to a repository to use this resource.
resource "github_repository" "example" {
name = "my-repository"
visibility = "private"
}
resource "github_actions_repository_access_level" "test" {
access_level = "user"
repository = github_repository.example.name
}
The following arguments are supported:
repository
- (Required) The GitHub repositoryaccess_level
- (Required) Where the actions or reusable workflows of the repository may be used. Possible values are none
, user
, organization
, or enterprise
. This resource can be imported using the name of the GitHub repository:
$ terraform import github_actions_repository_access_level.test my-repository