Skip to content

Commit

Permalink
ci: add tfsec workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
themaheshyadav committed May 8, 2023
1 parent b1f2a4f commit 598ea89
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: changelog
permissions: write-all

on:
push:
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
call-workflow-changelog:
changelog:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
secrets: inherit
with:
branch: 'master'
11 changes: 11 additions & 0 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: tfsec
permissions: write-all
on:
pull_request:
workflow_dispatch:
jobs:
tfsec:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
secrets: inherit
with:
working_directory: '.'
3 changes: 1 addition & 2 deletions examples/mysql-flexible-server-replication/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ data "azurerm_private_dns_zone" "main" {

module "flexible-mysql" {
depends_on = [module.resource_group, module.vnet, data.azurerm_resource_group.main]
source = "../.."
source = "clouddrove/flexible-mysql/azure"
name = "app"
environment = "test"
label_order = ["name", "environment"]
main_rg_name = data.azurerm_resource_group.main.name
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
Expand Down
3 changes: 1 addition & 2 deletions examples/mysql-flexible-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ module "subnet" {

module "flexible-mysql" {
depends_on = [module.resource_group, module.vnet]
source = "../.."
source = "clouddrove/flexible-mysql/azure"
name = "app"
environment = "test"
label_order = ["name", "environment"]
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
virtual_network_id = module.vnet.vnet_id[0]
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ variable "repository" {

variable "label_order" {
type = list(any)
default = []
default = ["name", "environment"]
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}

Expand Down

0 comments on commit 598ea89

Please sign in to comment.