From 42c4467aff87e5baf114e8dcf6acb2cd47cf4938 Mon Sep 17 00:00:00 2001 From: Gian Miguel Del Mundo Date: Thu, 25 Apr 2024 14:57:29 +0800 Subject: [PATCH 1/4] Added .trivyignore and updated .gitignore --- .gitignore | 1 + .trivyignore | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .trivyignore diff --git a/.gitignore b/.gitignore index 901b6e6..0255c2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ */target/ +.idea/ diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 0000000..6ac5cb7 --- /dev/null +++ b/.trivyignore @@ -0,0 +1,5 @@ +# List any vulnerability that are to be accepted +# See https://aquasecurity.github.io/trivy/v0.35/docs/vulnerability/examples/filter/ +# for more details +# e.g. +# CVE-2022-3996 From 648f18fca54d91750441df8a1250c8a0589715f1 Mon Sep 17 00:00:00 2001 From: Gian Miguel Del Mundo Date: Thu, 25 Apr 2024 15:00:35 +0800 Subject: [PATCH 2/4] Added build-and-test pipeline --- .github/workflows/build-and-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/workflows/build-and-test.yaml diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..7d13279 --- /dev/null +++ b/.github/workflows/build-and-test.yaml @@ -0,0 +1,7 @@ +name: Build and Test +on: [pull_request, push, workflow_dispatch] + +jobs: + build: + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@main + secrets: inherit \ No newline at end of file From 71612f69392a22fde3c4da1d9f3ca386c9b738b4 Mon Sep 17 00:00:00 2001 From: Gian Miguel Del Mundo Date: Thu, 25 Apr 2024 15:12:56 +0800 Subject: [PATCH 3/4] Added working_dir for build-and-test pipeline --- .github/workflows/build-and-test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 7d13279..a0805e0 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -4,4 +4,6 @@ on: [pull_request, push, workflow_dispatch] jobs: build: uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@main - secrets: inherit \ No newline at end of file + secrets: inherit + with: + working_dir: attestation-aws/ \ No newline at end of file From 092fe387581656c4b7f0a5b35b0362971a450658 Mon Sep 17 00:00:00 2001 From: Gian Miguel Del Mundo Date: Thu, 25 Apr 2024 15:15:37 +0800 Subject: [PATCH 4/4] Added jacoco plugin --- attestation-aws/pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/attestation-aws/pom.xml b/attestation-aws/pom.xml index 8766d23..2399f80 100644 --- a/attestation-aws/pom.xml +++ b/attestation-aws/pom.xml @@ -57,6 +57,18 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.8 + + + + prepare-agent + + + + org.apache.maven.plugins maven-compiler-plugin