Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rule templates sync workflow #2011

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/sync-rule-templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Sync CIS Rule Templates

on:
# push:
# branches:
# - main
pull_request:
branches:
- main

jobs:
Sync-Templates:
name: Sync CIS Rule Templates
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Checkout Cloudbeat repo
uses: actions/checkout@v4
with:
token: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
path: cloudbeat

- name: Checkout Integrations repo
uses: actions/checkout@v4
with:
token: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
repository: elastic/integrations
path: integrations

# - name: Init Hermit
# run: ./bin/hermit env -r >> $GITHUB_ENV

# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.9"

# - name: Install Poetry
# run: |
# curl -sSL https://install.python-poetry.org | python3 -
# poetry --version

# - name: Install dependencies
# working-directory: security-policies
# run: poetry install

- name: Sync CIS Rule Templates
run: |
git config --get user.email
git config --get user.name
pwd
cd ..
ls
# cd cloudbeat
# poetry run python security-policies/dev/generate_rule_templates.py
# cd ..
# cd integrations
# git status
Loading