Skip to content

Commit

Permalink
CCM-6245: TFSec Scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesthompson26-nhs committed Aug 20, 2024
1 parent 0bd1cbc commit 9e75eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/actions/tfsec/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ runs:
shell: bash
run: |
for component in $(find infrastructure/terraform/components -mindepth 1 -type d); do
source $HOME/.profile
scripts/terraform/tfsec.sh $component
done
- name: "TFSec Scan - Modules"
shell: bash
run: |
for module in $(find infrastructure/terraform/modules -mindepth 1 -type d); do
source $HOME/.profile
scripts/terraform/tfsec.sh $module
done
4 changes: 2 additions & 2 deletions .github/workflows/stage-1-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ jobs:
name: "TFSec Scan"
runs-on: ubuntu-latest
timeout-minutes: 2
needs: detect-terraform-changes
if: needs.detect-terraform-changes.outputs.terraform_changed == 'true'
# needs: detect-terraform-changes
# if: needs.detect-terraform-changes.outputs.terraform_changed == 'true'
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand Down

0 comments on commit 9e75eb8

Please sign in to comment.