Skip to content

Bump Cloudbeat version #40

Bump Cloudbeat version

Bump Cloudbeat version #40

name: Update Integration
on:
# push:
# branches:
# - main
create:
branches:
- "[0-9]+.[0-9]+"
jobs:
# extract-version:
# outputs:
# stack_version: ${{ steps.extract_version.outputs.version }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Cloudbeat repo
# uses: actions/checkout@v4
# - name: Extract version from file
# id: extract_version
# run: |
# version=$(grep defaultBeatVersion version/version.go | cut -f2 -d "\"")
# echo "version=$version" >> $GITHUB_OUTPUT
# echo "Version is $version"
zoo:
runs-on: ubuntu-latest
steps:
- name: a
run: |
echo "branch name: ${{ github.head_ref || github.ref_name }}"
# modify-integration:
# # needs: extract-version
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Integrations repo
# uses: actions/checkout@v2
# with:
# token: ${{ secrets.FORK_TOKEN }}
# repository: orouz/integrations
# ref: main
# - name: Update URLs
# run: |
# MANIFEST_PATH="packages/cloud_security_posture/manifest.yml"
# # VERSION="${{ needs.extract-version.outputs.stack_version }}"
# VERSION="5.5.5"
# MINOR_VERSION=$(echo $VERSION | cut -d '.' -f1,2)
# echo "MINOR_VERSION is $MINOR_VERSION"
# PATCH_VERSION=$VERSION
# echo "PATCH_VERSION is $PATCH_VERSION"
# # cis_gcp
# sed -i'' -E "s/cloudshell_git_branch=[0-9]+\.[0-9]+/cloudshell_git_branch=$MINOR_VERSION/g" $MANIFEST_PATH
# # cis_aws + vuln_mgmt_aws
# sed -i'' -E "s/cloudformation-cnvm-[0-9]+\.[0-9]+\.[0-9]+/cloudformation-cnvm-$PATCH_VERSION/g" $MANIFEST_PATH
# sed -i'' -E "s/cloudformation-cspm-ACCOUNT_TYPE-[0-9]+\.[0-9]+\.[0-9]+/cloudformation-cspm-ACCOUNT_TYPE-$PATCH_VERSION/g" $MANIFEST_PATH
# # cis_azure
# sed -i'' -E "s/cloudbeat%2F[0-9]+\.[0-9]+/cloudbeat%2F$PATCH_VERSION/g" $MANIFEST_PATH
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v4
# id: cpr
# with:
# token: ${{ secrets.FORK_TOKEN }}
# commit-message: "Update manifest template versions"
# branch: "update-cloudbeat-integration"
# title: "[Cloud Security] Update manifest template versions"
# body: "Automated PR"
# base: ${{ env.branch }}
# committer: "Elastic Machine <[email protected]>"
# author: "Elastic Machine <[email protected]>"