Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cysk92 authored Nov 5, 2024
1 parent efbefc2 commit d500cb9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ jobs:

# - name: Create environment variables file
# Create an environment variable file that would be passed to the IaC docker image. Note that all relevant environment values need to be passed through here.
#run: |
# echo "LW_ACCOUNT=${{ secrets.LW_ACCOUNT }}" >> env.list
# echo "LW_API_KEY=${{ secrets.LW_API_KEY }}" >> env.list
#echo "LW_API_SECRET=${{ secrets.LW_API_SECRET }}" >> env.list
#echo "EXIT_FLAG=CRITICAL=1" >> env.list
run: |
echo "LW_ACCOUNT=${{ secrets.LW_ACCOUNT }}" >> env.list
echo "LW_API_KEY=${{ secrets.LW_API_KEY }}" >> env.list
echo "LW_API_SECRET=${{ secrets.LW_API_SECRET }}" >> env.list
- name: Scan the repo for vulnerabilities in IaC
run: |
docker run --env-file <(env) -v "$(pwd):/app/src" lacework/codesec:stable lacework iac scan -d ./
curl https://raw.githubusercontent.com/lacework/go-sdk/main/cli/install.sh | bash

0 comments on commit d500cb9

Please sign in to comment.