Skip to content

Commit

Permalink
Fix ability to use GitHub Teams with device policy
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xmorris authored Nov 27, 2023
1 parent 53ada39 commit d3d88db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ resource "cloudflare_access_policy" "github_policy" {
purpose_justification_prompt = var.purpose_justification_required ? var.purpose_justification_prompt : null
include {
github {
name = var.github_org
identity_provider_id = var.github_idp
name = var.github_org
teams = var.github_teams
}
}
Expand Down Expand Up @@ -52,12 +52,13 @@ resource "cloudflare_access_policy" "device_policy" {
purpose_justification_prompt = var.purpose_justification_required ? var.purpose_justification_prompt : null
include {
github {
name = var.github_org
identity_provider_id = var.github_idp
name = var.github_org
teams = var.github_teams
}
}
require {
device_posture = var.device_policy_rules
}
count = length(var.device_policy_rules) == 0 ? 0 : 1
}
}

0 comments on commit d3d88db

Please sign in to comment.