Skip to content

Commit

Permalink
fix: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
themaheshyadav committed May 24, 2023
1 parent 0a6ae32 commit 9ed3289
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
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:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: tfsec
permissions: write-all

on:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
call-workflow-tfsec:
tfsec:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
secrets: inherit
with:
working_directory: './_example'
working_directory: '.'
10 changes: 4 additions & 6 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ provider "azurerm" {
module "resource_group" {
source = "clouddrove/resource-group/azure"
version = "1.0.2"
name = "app-nsg"
name = "app"
environment = "test"
label_order = ["name", "environment", ]
location = "Canada Central"
}

module "vnet" {
depends_on = [module.resource_group]
source = "clouddrove/vnet/azure"
version = "1.0.2"
label_order = ["name", "environment"]

depends_on = [module.resource_group]
source = "clouddrove/vnet/azure"
version = "1.0.2"
name = "app"
environment = "test"
resource_group_name = module.resource_group.resource_group_name
Expand Down

0 comments on commit 9ed3289

Please sign in to comment.