From 12b1c195fb0444943fbad386f032339a9b2c1724 Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Mon, 8 May 2023 21:04:58 +0530 Subject: [PATCH 1/2] ci: Add tfsec workflow --- .github/workflows/{changelog.yaml => changelog.yml} | 5 ++--- .github/workflows/tfsec.yml | 11 +++++++++++ _example/main.tf | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) rename .github/workflows/{changelog.yaml => changelog.yml} (69%) create mode 100644 .github/workflows/tfsec.yml diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yml similarity index 69% rename from .github/workflows/changelog.yaml rename to .github/workflows/changelog.yml index 3e48a53..1ee6f78 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yml @@ -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' diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml new file mode 100644 index 0000000..9aaf588 --- /dev/null +++ b/.github/workflows/tfsec.yml @@ -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: '.' \ No newline at end of file diff --git a/_example/main.tf b/_example/main.tf index 76f6d09..0e6bc9f 100644 --- a/_example/main.tf +++ b/_example/main.tf @@ -43,7 +43,7 @@ module "name_specific_subnet" { module "bastion" { depends_on = [module.resource_group] - source = "./../" + source = "clouddrove/bastion/azure" name = "app" environment = "test" label_order = ["name", "environment"] From 432226e3fce636db377e39f4d4aecb25b94e458f Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Mon, 8 May 2023 21:09:06 +0530 Subject: [PATCH 2/2] fix: Add tfsec workflow --- _example/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_example/main.tf b/_example/main.tf index 0e6bc9f..76f6d09 100644 --- a/_example/main.tf +++ b/_example/main.tf @@ -43,7 +43,7 @@ module "name_specific_subnet" { module "bastion" { depends_on = [module.resource_group] - source = "clouddrove/bastion/azure" + source = "./../" name = "app" environment = "test" label_order = ["name", "environment"]