From 367fee4f85d5087a52addc2aafa4fbb637107906 Mon Sep 17 00:00:00 2001 From: Chandbwn <139188225+Chandbwn@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:44:34 -0700 Subject: [PATCH 1/5] Delete .github/workflows directory --- .github/workflows/checkov.yaml | 40 ---------------------------------- .github/workflows/main.yaml | 21 ------------------ 2 files changed, 61 deletions(-) delete mode 100644 .github/workflows/checkov.yaml delete mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/checkov.yaml b/.github/workflows/checkov.yaml deleted file mode 100644 index acee34d0..00000000 --- a/.github/workflows/checkov.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: build -on: - push: - branches: - - master -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.7] - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Run yor action - uses: bridgecrewio/yor-action@main - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Update documentation - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git fetch --tags - git pull - - latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) - echo "latest tag: $latest_tag" - new_tag=$(echo $latest_tag | awk -F. -v a="$1" -v b="$2" -v c="$3" '{printf("%d.%d.%d", $1+a, $2+b , $3+1)}') - echo "new tag: $new_tag" - - pip install -U checkov - cat .github/template.md > README.md && checkov -d . -o github_failed_only -s >> README.md - git add README.md || echo "No changes to commit" - git commit -m "update resource scan result doc" README.md || echo "No changes to commit" - git push origin - git tag $new_tag - git push origin $new_tag diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml deleted file mode 100644 index 114349a1..00000000 --- a/.github/workflows/main.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: checkov-scan -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - branches: - - master - pull_request: - branches: - - master -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.7] - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - name: Checkov Github Action - uses: bridgecrewio/checkov-action@v5 From 6796267256b3e4f7272b32155427fa38971fe843 Mon Sep 17 00:00:00 2001 From: Chandbwn <139188225+Chandbwn@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:56:16 -0700 Subject: [PATCH 2/5] CPSP-Workshop test github action _Chandra !!!! --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..8fb994ef --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: CPSP-workshop +on: +push: +branches: +- master +jobs: +scan: +runs-on: ubuntu-latest +strategy: +matrix: +python-version: [3.8] +steps: +- name: Checkout repo +uses: actions/checkout@v2 +- name: Run Bridgecrew +id: Bridgecrew +uses: bridgecrewio/bridgecrew-action@master +env: +PRISMA_API_URL: https://api3.prismacloud.io +with: +api-key: ${{ secrets.BC_API_KEY }} From 480242a723b26759ce880bb6aeaa7a53b56f56c7 Mon Sep 17 00:00:00 2001 From: Chandbwn <139188225+Chandbwn@users.noreply.github.com> Date: Thu, 17 Aug 2023 21:03:17 -0700 Subject: [PATCH 3/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fb994ef..db85c7fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ matrix: python-version: [3.8] steps: - name: Checkout repo -uses: actions/checkout@v2 + - name: Run Bridgecrew id: Bridgecrew uses: bridgecrewio/bridgecrew-action@master From 6d815b708c75803e450ad65557dfdd63a9dda2c8 Mon Sep 17 00:00:00 2001 From: Chandbwn <139188225+Chandbwn@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:43:42 -0700 Subject: [PATCH 4/5] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db85c7fc..ac18a55a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,7 @@ matrix: python-version: [3.8] steps: - name: Checkout repo +uses: actions/checkout@v2 - name: Run Bridgecrew id: Bridgecrew From f05ace249bdf602c8992628c89ecaef2c094991b Mon Sep 17 00:00:00 2001 From: Chandbwn <139188225+Chandbwn@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:48:59 -0700 Subject: [PATCH 5/5] Create blank.yml --- .github/workflows/blank.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000..ac18a55a --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,22 @@ +name: CPSP-workshop +on: +push: +branches: +- master +jobs: +scan: +runs-on: ubuntu-latest +strategy: +matrix: +python-version: [3.8] +steps: +- name: Checkout repo +uses: actions/checkout@v2 + +- name: Run Bridgecrew +id: Bridgecrew +uses: bridgecrewio/bridgecrew-action@master +env: +PRISMA_API_URL: https://api3.prismacloud.io +with: +api-key: ${{ secrets.BC_API_KEY }}