Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 5 additions & 19 deletions .github/workflows/cloudformation-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,18 @@ jobs:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV
working-directory: ./
- name: Hermit Environment
uses: ./.github/actions/hermit
with:
init-tools: 'true'
free-disk: 'true'

- name: Set up unique deployment names
run: |
suffix="$(date +%s | tail -c 3)"
echo "TF_VAR_deployment_name=DEPLOY_PR${{ github.event.number }}-$suffix" >> $GITHUB_ENV
echo "CNVM_STACK_NAME=cnvm-stack-pr${{ github.event.number }}-$suffix" >> $GITHUB_ENV

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

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

- name: Install Fleet API dependencies
id: fleet-api-deps
working-directory: ./tests
run: |
poetry install

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4
with:
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/sync-rule-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,11 @@ jobs:
token: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
path: cloudbeat

- name: Init Hermit
working-directory: cloudbeat
run: ./bin/hermit env -r >> $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- name: Hermit Environment
uses: ./.github/actions/hermit
with:
python-version: "3.9"

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

- name: Install dependencies
working-directory: cloudbeat/security-policies
run: poetry install
init-tools: 'true'
free-disk: 'true'

- name: Sync CIS Rules with integrations repo
working-directory: cloudbeat
Expand Down
30 changes: 8 additions & 22 deletions .github/workflows/test-gcp-dm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,11 @@ jobs:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

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

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- name: Hermit Environment
uses: ./.github/actions/hermit
with:
python-version: "3.9"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
init-tools: 'true'
free-disk: 'true'

- id: google-auth
name: Authenticate to Google Cloud
Expand Down Expand Up @@ -149,18 +142,11 @@ jobs:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

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

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- name: Hermit Environment
uses: ./.github/actions/hermit
with:
python-version: "3.9"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
init-tools: 'true'
free-disk: 'true'

- id: google-auth
name: Authenticate to Google Cloud
Expand Down
Loading