From e09f5098930fd3a11d6f1bd97d23c4fa18c9691d Mon Sep 17 00:00:00 2001 From: Mick Solliday Date: Thu, 5 Mar 2026 10:56:05 -0600 Subject: [PATCH 1/5] Add Checkov workflow for security scanning --- .github/workflows/checkov.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/checkov.yml diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.yml new file mode 100644 index 000000000..00e3ec636 --- /dev/null +++ b/.github/workflows/checkov.yml @@ -0,0 +1,32 @@ +name: checkov +on: + pull_request: + push: + branches: + - main +jobs: + scan: + runs-on: ubuntu-latest + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results + + steps: + - uses: actions/checkout@v2 + + - name: Run checkov + id: checkov + uses: bridgecrewio/checkov-action@master + with: + directory: code/ + #soft_fail: true + + - name: Upload SARIF file + uses: GitHub/codeql-action/upload-sarif@v3 + + # Results are generated only on a success or failure + # this is required since GitHub by default won't run the next step + # when the previous one has failed. Alternatively, enable soft_fail in checkov action. + if: success() || failure() + with: + sarif_file: results.sarif From 742aadf6a1b8874017519ee9c4999b2f86afee10 Mon Sep 17 00:00:00 2001 From: Mick Solliday Date: Thu, 5 Mar 2026 17:00:19 +0000 Subject: [PATCH 2/5] testing action --- code/testfile.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 code/testfile.txt diff --git a/code/testfile.txt b/code/testfile.txt new file mode 100644 index 000000000..e69de29bb From 64e481d989aed05d5e6b4f62e1c2ef6d2d7aed0b Mon Sep 17 00:00:00 2001 From: Mick Solliday Date: Thu, 5 Mar 2026 11:28:24 -0600 Subject: [PATCH 3/5] Add Google Cloud Storage bucket configuration --- code/build/gcs.tf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 code/build/gcs.tf diff --git a/code/build/gcs.tf b/code/build/gcs.tf new file mode 100644 index 000000000..85a2f3722 --- /dev/null +++ b/code/build/gcs.tf @@ -0,0 +1,21 @@ +provider "google" { + project = "qwiklabs-gcp-00-14f90c913ecf" + region = "us-central1" +} + +resource "google_storage_bucket" "example" { + name = "demo-${random_id.rand_suffix.hex}" + location = "us-central1" + force_destroy = true + + uniform_bucket_level_access = false + public_access_prevention = "enforced" +} + +resource "random_id" "rand_suffix" { + byte_length = 4 +} + +output "bucket_name" { + value = google_storage_bucket.example.name +} From 9e1ed7c91bbc12d9c4c8c07a324dc526fd8885d6 Mon Sep 17 00:00:00 2001 From: Mick Solliday Date: Thu, 5 Mar 2026 11:30:40 -0600 Subject: [PATCH 4/5] Delete code/build/gcs.tf --- code/build/gcs.tf | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 code/build/gcs.tf diff --git a/code/build/gcs.tf b/code/build/gcs.tf deleted file mode 100644 index 85a2f3722..000000000 --- a/code/build/gcs.tf +++ /dev/null @@ -1,21 +0,0 @@ -provider "google" { - project = "qwiklabs-gcp-00-14f90c913ecf" - region = "us-central1" -} - -resource "google_storage_bucket" "example" { - name = "demo-${random_id.rand_suffix.hex}" - location = "us-central1" - force_destroy = true - - uniform_bucket_level_access = false - public_access_prevention = "enforced" -} - -resource "random_id" "rand_suffix" { - byte_length = 4 -} - -output "bucket_name" { - value = google_storage_bucket.example.name -} From 53186aa6355947c7fe62ee59275442c6f766397d Mon Sep 17 00:00:00 2001 From: Mick Solliday Date: Thu, 5 Mar 2026 11:31:05 -0600 Subject: [PATCH 5/5] Add GCS bucket configuration with random ID Define Google Cloud Storage bucket with random name and outputs. --- code/build/gcs.tf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 code/build/gcs.tf diff --git a/code/build/gcs.tf b/code/build/gcs.tf new file mode 100644 index 000000000..85a2f3722 --- /dev/null +++ b/code/build/gcs.tf @@ -0,0 +1,21 @@ +provider "google" { + project = "qwiklabs-gcp-00-14f90c913ecf" + region = "us-central1" +} + +resource "google_storage_bucket" "example" { + name = "demo-${random_id.rand_suffix.hex}" + location = "us-central1" + force_destroy = true + + uniform_bucket_level_access = false + public_access_prevention = "enforced" +} + +resource "random_id" "rand_suffix" { + byte_length = 4 +} + +output "bucket_name" { + value = google_storage_bucket.example.name +}