Skip to content

Commit

Permalink
Checkov fonctionnel
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreheleta committed Jun 28, 2023
1 parent 08e44be commit 27a84e4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/checkov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:

- name: Install Dependencies
run: |
apt-get install python3-pip -y
pip3 install checkov awscli awscli_plugin_endpoint
sudo apt-get install python3-pip -y
sudo pip3 install checkov awscli awscli_plugin_endpoint
- name: Setup AWS CLI
run: |
Expand All @@ -36,8 +36,11 @@ jobs:
aws_secret_access_key = ${{ secrets.SECRET_ACCESS_KEY_SCALEWAY }}
EOF
- name: Run Checkov and Upload Results to S3
- name: Run Checkov
run: |
checkov -d . > results.txt || exit 0
- name: Upload Results to S3
run: |
checkov -d . > results.txt
TIMESTAMP=$(date '+%d_%m_%Y_%H_%M_%S')
aws s3 cp results.txt s3://${{ secrets.BUCKETNAME }}/checkov_$TIMESTAMP.txt
aws s3 cp results.txt s3://${{ secrets.BUCKETNAME }}/checkov_$TIMESTAMP.txt

0 comments on commit 27a84e4

Please sign in to comment.