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 19, 2024
1 parent 7c9b6b2 commit adb5bbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/stage-1-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ 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
- name: "Setup ASDF"
uses: asdf-vm/actions/setup@v3
- name: "Perform Setup"
uses: ./.github/actions/setup
- name: "TFSec Scan"
Expand Down
12 changes: 7 additions & 5 deletions scripts/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ function main() {

function run-setup() {

git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.14.0 -c advice.detachedHead=false
echo ". $HOME/.asdf/asdf.sh" >> "$HOME/.profile"
echo ". $HOME/.asdf/completions/asdf.bash" >> "$HOME/.profile"
echo "installed asdf version 0.14.0"
source $HOME/.profile
# ASDF_VERSION=v0.14.0

# git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch $ASDF_VERSION -c advice.detachedHead=false
# echo ". $HOME/.asdf/asdf.sh" >> "$HOME/.profile"
# echo ". $HOME/.asdf/completions/asdf.bash" >> "$HOME/.profile"
# echo "installed asdf version 0.14.0"
# source $HOME/.profile
sudo apt install bundler -y
time make config

Expand Down

0 comments on commit adb5bbf

Please sign in to comment.