Skip to content

Commit c6ebe43

Browse files
committed
fix: can not use defaults for with settings
1 parent 1de4c9a commit c6ebe43

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/dev-checks.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ name: dev-checks
88
paths:
99
- "deployment/dev/**"
1010

11-
defaults:
12-
run:
13-
working-directory: "./deployment/dev/"
14-
15-
1611
jobs:
17-
conventional-commits:
18-
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
1912
linting:
2013
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
14+
with:
15+
working_directory: "./deployment/dev"
2116
validation:
2217
uses: broadinstitute/shared-workflows/.github/workflows/terraform-validate.yaml@hf_use_tfenv
18+
with:
19+
working_directory: "./deployment/dev"
2320
# NOTE: using tfsec because trivy tries to scan remote terraform modules and trivy-ignores
2421
# at root level do not work for remote terraform modules
2522
static_analysis:
2623
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
2724
secrets:
2825
wf_github_token: ${{ secrets.github_token }}
2926
with:
27+
working_directory: "./deployment/dev"
3028
run_tfsec: true
3129
run_trivy: false

.github/workflows/prod-checks.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,23 @@ defaults:
1515
jobs:
1616
terraform-docs:
1717
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
18+
with:
19+
working_directory: "./deployment/prod"
1820
linting:
1921
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
22+
with:
23+
working_directory: "./deployment/prod"
2024
validation:
2125
uses: broadinstitute/shared-workflows/.github/workflows/terraform-validate.yaml@hf_use_tfenv
26+
with:
27+
working_directory: "./deployment/prod"
2228
# NOTE: using tfsec because trivy tries to scan remote terraform modules and trivy-ignores
2329
# at root level do not work for remote terraform modules
2430
static_analysis:
2531
uses: broadinstitute/shared-workflows/.github/workflows/[email protected]
2632
secrets:
2733
wf_github_token: ${{ secrets.github_token }}
2834
with:
35+
working_directory: "./deployment/prod"
2936
run_tfsec: true
3037
run_trivy: false

0 commit comments

Comments
 (0)