From 747ae192a4cc74131a27e7a15677873c7967bf8b Mon Sep 17 00:00:00 2001 From: Michael Long Date: Mon, 15 Apr 2024 16:02:35 -0400 Subject: [PATCH] add inspector id --- .github/workflows/test_archive.yml | 3 ++- .github/workflows/test_binary.yml | 1 + .github/workflows/test_containers.yml | 1 + validator/validate_inspector_scan.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_archive.yml b/.github/workflows/test_archive.yml index 90e79e1..1142c0a 100644 --- a/.github/workflows/test_archive.yml +++ b/.github/workflows/test_archive.yml @@ -30,7 +30,8 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # TODO: use an IAM role - - name: Test Repository Scan + - name: Run Inspector scan + id: inspector uses: aws/amazon-inspector-github-actions-plugin@main # TODO: update this to point to public v1.0.0 release with: diff --git a/.github/workflows/test_binary.yml b/.github/workflows/test_binary.yml index 87a9be4..d29f86b 100644 --- a/.github/workflows/test_binary.yml +++ b/.github/workflows/test_binary.yml @@ -31,6 +31,7 @@ jobs: # TODO: use an IAM role - name: Test Repository Scan + id: inspector uses: aws/amazon-inspector-github-actions-plugin@main # TODO: update this to point to public v1.0.0 release with: diff --git a/.github/workflows/test_containers.yml b/.github/workflows/test_containers.yml index e8d4984..f14ff5f 100644 --- a/.github/workflows/test_containers.yml +++ b/.github/workflows/test_containers.yml @@ -31,6 +31,7 @@ jobs: # TODO: use an IAM role - name: Test Repository Scan + id: inspector uses: aws/amazon-inspector-github-actions-plugin@main # TODO: update this to point to public v1.0.0 release with: diff --git a/validator/validate_inspector_scan.py b/validator/validate_inspector_scan.py index 302e5da..7ee118e 100755 --- a/validator/validate_inspector_scan.py +++ b/validator/validate_inspector_scan.py @@ -90,6 +90,7 @@ def main(): inspector_scan_json = open_inspector_scan(args.file) validate_inspector_scan(inspector_scan_json) + logging.info("validation successful") if __name__ == "__main__":