-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (40 loc) · 1.61 KB
/
test_reports_no_vulns.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test CSV no vulns
on:
push:
branches: #
- '*'
jobs:
daily_job:
runs-on: ubuntu-latest
environment:
name: plugin-development
steps:
- name: Checkout this repository
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
- name: Test container scan
id: inspector
uses: aws-actions/vulnerability-scan-github-action-for-amazon-inspector@v1
with:
artifact_type: 'container'
artifact_path: 'alpine:latest'
display_vulnerability_findings: "enabled"
sbomgen_version: "latest"
- name: Display scan results
run: cat ${{ steps.inspector.outputs.inspector_scan_results_csv }}
- name: Display scan results (JSON)
run: cat ${{ steps.inspector.outputs.inspector_scan_results }}
- name: Display package vulns (CSV)
run: cat ${{ steps.inspector.outputs.inspector_scan_results_csv }}
- name: Display package vulns (MD)
run: cat ${{ steps.inspector.outputs.inspector_scan_results_markdown }}
- name: Display Dockerfile vulns (CSV)
run: cat ${{ steps.inspector.outputs.inspector_dockerfile_scan_results_csv }}
- name: Display Dockerfile vulns (MD)
run: cat ${{ steps.inspector.outputs.inspector_dockerfile_scan_results_markdown }}