From f7b92cf80bedd7ddc18cee20c0abe0df7a750cf6 Mon Sep 17 00:00:00 2001 From: oaborden Date: Wed, 12 Nov 2025 08:43:26 -0800 Subject: [PATCH 1/3] checkov.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..00e3ec636 --- /dev/null +++ b/.github/workflows/main.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 2414d1961f40ff031c272ab742e2c2f356cb6be4 Mon Sep 17 00:00:00 2001 From: oaborden Date: Wed, 12 Nov 2025 08:44:02 -0800 Subject: [PATCH 2/3] Rename main.yml to checkov.yml --- .github/workflows/{main.yml => checkov.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml => checkov.yml} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/checkov.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/checkov.yml From 0292cd99a87cf05bf0aefa8509debc0efe1e580e Mon Sep 17 00:00:00 2001 From: oaborden Date: Wed, 12 Nov 2025 09:04:04 -0800 Subject: [PATCH 3/3] Create gcs.tf --- 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..803108a7e --- /dev/null +++ b/code/build/gcs.tf @@ -0,0 +1,21 @@ +provider "google" { + project = "qwiklabs-gcp-03-1fe9f5da9514" + 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 +}