Scan Deployed Image #964
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scan Deployed Image | |
on: | |
schedule: | |
- cron: "0 6 * * *" # 2300 PST, 0200 EST | |
env: | |
AWS_DEFAULT_REGION: us-west-2 | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
GIT_HASH: ${{ github.sha }} | |
jobs: | |
rescan_deployed_image: | |
if: ${{ false }} # Disabled until we have a deployed image to scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/[email protected] | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-west-2 | |
- name: Check deployed image for vulnerability findings - impl | |
env: | |
APP_ENV: impl | |
run: bash ./scripts/check_deployed_image_findings "easi-backend" "7" | |
- name: Check deployed image for vulnerability findings - prod | |
env: | |
APP_ENV: prod | |
run: bash ./scripts/check_deployed_image_findings "easi-backend" "7" | |
- name: Announce failure | |
if: ${{ failure() }} | |
run: ./scripts/github-action-announce-broken-branch |