From 806c003c1e4c118d7a5c3f7c47878a26bcc9d047 Mon Sep 17 00:00:00 2001 From: thogue12 Date: Wed, 26 Feb 2025 20:15:28 -0500 Subject: [PATCH 1/5] space --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79fc0e5..d205584 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ permissions: security-events: write actions: read + jobs: build-image: uses: ./.github/workflows/build-image.yml From 5ba2134c438de720525bf590ca6d63e6d891d271 Mon Sep 17 00:00:00 2001 From: thogue12 Date: Wed, 26 Feb 2025 20:19:41 -0500 Subject: [PATCH 2/5] changed trigger --- .github/workflows/build-image.yml | 2 +- .github/workflows/lint-format.yml | 2 +- .github/workflows/push-image.yml | 2 +- .github/workflows/unit-sec-test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index c4de9cb..02c7a85 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -1,6 +1,6 @@ name: Build Docker Image on: - workflow_dispatch: + workflow_call: permissions: contents: read diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 37e7692..6fb6b8f 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -1,6 +1,6 @@ name: Linting and Formating checks on: - workflow_dispatch: + workflow_call: permissions: contents: read diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 8f19a09..32d3a07 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -1,6 +1,6 @@ name: Push Contianer to Docker Hub on: - workflow_dispatch: + workflow_call: permissions: contents: read diff --git a/.github/workflows/unit-sec-test.yml b/.github/workflows/unit-sec-test.yml index 13133fc..e0c2a28 100644 --- a/.github/workflows/unit-sec-test.yml +++ b/.github/workflows/unit-sec-test.yml @@ -1,6 +1,6 @@ name: Unit and Security Testing on: - workflow_dispatch: + workflow_call: permissions: From 135e844a04ab84e3725353a0166774aa93ac79d6 Mon Sep 17 00:00:00 2001 From: thogue12 Date: Wed, 26 Feb 2025 20:20:57 -0500 Subject: [PATCH 3/5] edit --- .github/workflows/lint-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 6fb6b8f..cba2684 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -1,6 +1,6 @@ name: Linting and Formating checks on: - workflow_call: + workflow_call: permissions: contents: read From c04a18c27bdde4b797ece7964529df4257bc8c87 Mon Sep 17 00:00:00 2001 From: thogue12 Date: Wed, 26 Feb 2025 20:23:27 -0500 Subject: [PATCH 4/5] edited the permissions --- .github/workflows/build-image.yml | 4 ---- .github/workflows/lint-format.yml | 5 ----- .github/workflows/push-image.yml | 5 ----- .github/workflows/unit-sec-test.yml | 6 ------ 4 files changed, 20 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 02c7a85..019d934 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -2,10 +2,6 @@ name: Build Docker Image on: workflow_call: -permissions: - contents: read - security-events: write - actions: read jobs: # Build Docker Image diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index cba2684..5aba438 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -2,11 +2,6 @@ name: Linting and Formating checks on: workflow_call: -permissions: - contents: read - security-events: write - actions: read - jobs: # Run Pylint and Black formatter lint_format: diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 32d3a07..397c683 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -2,11 +2,6 @@ name: Push Contianer to Docker Hub on: workflow_call: -permissions: - contents: read - security-events: write - actions: read - jobs: docker: diff --git a/.github/workflows/unit-sec-test.yml b/.github/workflows/unit-sec-test.yml index e0c2a28..a518a30 100644 --- a/.github/workflows/unit-sec-test.yml +++ b/.github/workflows/unit-sec-test.yml @@ -1,12 +1,6 @@ name: Unit and Security Testing on: workflow_call: - - -permissions: - contents: read - security-events: write - actions: read jobs: # Run unit test cases for the Docker image From 6acabede2da146a09df01358c2f9ad94c456fa5e Mon Sep 17 00:00:00 2001 From: thogue12 Date: Wed, 26 Feb 2025 20:25:15 -0500 Subject: [PATCH 5/5] edit --- .github/workflows/lint-format.yml | 2 +- .github/workflows/push-image.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 5aba438..2c918ce 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -1,6 +1,6 @@ name: Linting and Formating checks on: - workflow_call: + workflow_call: jobs: # Run Pylint and Black formatter diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 397c683..3970ea3 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -1,6 +1,7 @@ name: Push Contianer to Docker Hub on: - workflow_call: + workflow_call: + jobs: