-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.23 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
36
37
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.event.pull_request.head.sha || 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@v3
with:
ref: ${{ env.GIT_HASH }}
- 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