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 4, 2024
1 parent d7c4c9f commit 068d1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# env | grep "GITHUB_\|LW_\|CI_" > env.list

- name: Checkout Code

Expand All @@ -43,12 +44,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: |
env | grep "GITHUB_\|LW_\|CI_" > env.list
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
- name: Scan the repo for vulnerabilities in IaC
run: |
docker run --env-file env.list -v "$(pwd):/app/src" lacework/codesec:stable
docker run --env-file env.list -v "$(pwd):/app/src" lacework/codesec:stable lacework iac scan -d ./

0 comments on commit 068d1bd

Please sign in to comment.