File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test Multi-arch images
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 */6 * * *' # runs every 6 hours
6
+ push :
7
+ branches : #
8
+ - ' *'
9
+
10
+ permissions :
11
+ contents : read
12
+ id-token : write
13
+
14
+ jobs :
15
+ daily_job :
16
+ runs-on : ubuntu-latest
17
+ environment :
18
+ name : plugin-development
19
+
20
+ steps :
21
+
22
+ - name : Checkout this repository
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Configure AWS credentials
26
+ uses : aws-actions/configure-aws-credentials@v4
27
+ with :
28
+ aws-region : ${{ secrets.AWS_REGION }}
29
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
30
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
31
+ role-to-assume : ${{ secrets.AWS_IAM_ROLE }}
32
+
33
+ - name : Test multi-arch image
34
+ id : inspector
35
+ uses : aws-actions/vulnerability-scan-github-action-for-amazon-inspector@v1.4.0
36
+ with :
37
+ artifact_type : ' container'
38
+ artifact_path : ' debian:trixie'
39
+ platform : " linux/arm/v5"
40
+ display_vulnerability_findings : " enabled"
41
+ sbomgen_version : " latest"
42
+
43
+ - name : Display scan results
44
+ run : cat ${{ steps.inspector.outputs.inspector_scan_results }}
45
+
46
+ - name : Validate scan content
47
+ run : python3 validator/validate_inspector_scan.py --file ${{ steps.inspector.outputs.inspector_scan_results }}
48
+
49
+ # only run if the previous step failed
50
+ - name : Notify maintainers of validation failure
51
+ if : ${{ failure() }}
52
+ run : echo "this feature is not implemented"
53
+
You can’t perform that action at this time.
0 commit comments