Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/checkout from 2 to 4 #1

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
#- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/terraform_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Validate Terraform module
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: terraform validate
uses: dflook/terraform-validate@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Security Scan
if: github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
uses: aquasecurity/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
}
}

provider "snowflake" {}

Check warning on line 11 in main.tf

View workflow job for this annotation

GitHub Actions / Validate Terraform module

Redundant empty provider block

resource "snowflake_oauth_integration" "this" {
name = var.name
comment = var.comment
comment = var.comment
oauth_client = var.oauth_client
enabled = var.enabled
oauth_issue_refresh_tokens = var.oauth_issue_refresh_tokens
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "oauth_client_id" {
value = snowflake_oauth_integration.this.oauth_client_id

Check failure on line 2 in outputs.tf

View workflow job for this annotation

GitHub Actions / Validate Terraform module

Unsupported attribute

}
84 changes: 42 additions & 42 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
variable "name" {
type = string
description = "The name of the OAuth integration."
}

variable "oauth_client" {
type = string
description = "The OAuth client."
}

variable "enabled" {
type = bool
description = "Flag to enable or disable the resource."
default = true
}

variable "oauth_issue_refresh_tokens" {
type = bool
description = "Flag to determine if refresh tokens should be issued."
default = true
}

variable "oauth_refresh_token_validity" {
type = number
description = "The validity period of the OAuth refresh token."
default = 3600
}

variable "blocked_roles_list" {
type = list(string)
description = "List of blocked roles."
default = ["SYSADMIN"]
}

variable "oauth_redirect_uri" {
type = string
default = "https://example.com/callback"
}

variable "comment" {
type = string
description = "The value of the comment field for the OAuth integration."
}
type = string
description = "The name of the OAuth integration."
}

variable "oauth_client" {
type = string
description = "The OAuth client."
}

variable "enabled" {
type = bool
description = "Flag to enable or disable the resource."
default = true
}

variable "oauth_issue_refresh_tokens" {
type = bool
description = "Flag to determine if refresh tokens should be issued."
default = true
}

variable "oauth_refresh_token_validity" {
type = number
description = "The validity period of the OAuth refresh token."
default = 3600
}

variable "blocked_roles_list" {
type = list(string)
description = "List of blocked roles."
default = ["SYSADMIN"]
}

variable "oauth_redirect_uri" {
type = string
default = "https://example.com/callback"
}

variable "comment" {
type = string
description = "The value of the comment field for the OAuth integration."
}

# Path: outputs.tf
Loading