-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.15 KB
/
scan_deployed_image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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