Skip to content

Commit

Permalink
test: update max cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Terre8055 committed Jun 12, 2024
1 parent 7b667c5 commit 0230419
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,17 @@ jobs:
run: |
TRIVY_OUTPUT=trivy_report_${{env.TIMESTAMP}}.json
TRIVY_OUTPUT_TABLE=trivy_report_table_${{env.TIMESTAMP}}.txt
trivy aws --region us-east-1 --format json --output ${TRIVY_OUTPUT} --severity MEDIUM
ls -l ${TRIVY_OUTPUT}
trivy aws --region us-east-1 --format json --output ${TRIVY_OUTPUT} --severity MEDIUM --update-cache
trivy aws --region us-east-1 --format table --output ${TRIVY_OUTPUT_TABLE} --severity MEDIUM --update-cache
ls -l
- name: Upload Trivy report to S3
run: |
TRIVY_OUTPUT=trivy_report_${{env.TIMESTAMP}}.json
aws s3 cp ${TRIVY_OUTPUT} s3://github-actions-s3-v1/trivy_reports/${TRIVY_OUTPUT}
- name: Run Trivy and save report
id: run_trivy
run: |
trivy aws --region us-east-1 --format table --output trivy_report.txt
#echo "TRIVY_REPORT_PATH=trivy_report${{env.TIMESTAMP}}.txt" >> $GITHUB_ENV
- name: Slack Notification
run: |
pip3 install slack_sdk
Expand Down

0 comments on commit 0230419

Please sign in to comment.