Skip to content

Commit

Permalink
cleanup and update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gurevichdmitry committed Nov 6, 2024
1 parent 95855b9 commit 886f42e
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 325 deletions.
17 changes: 17 additions & 0 deletions .github/actions/cdr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ inputs:
Name with letters, numbers, hyphens; start with a letter. Max 20 chars. e.g., 'my-env-123'
required: true
type: string
env-s3-bucket:
description: "S3 bucket"
required: true
type: string
aws-region:
description: "AWS region"
default: "eu-west-1"
Expand Down Expand Up @@ -309,3 +313,16 @@ runs:
src="../../../tests/integrations_setup/$scriptname"
cmd="chmod +x $scriptname && ./$scriptname"
../remote_setup.sh -k "$EC2_ASSET_INV_KEY" -s "$src" -h "$ASSET_INV_PUBLIC_IP" -d "~/$scriptname" -c "$cmd"
- name: Upload tf state
id: upload-state-cdr
if: always()
working-directory: deploy/test-environments
env:
S3_BUCKET: "${{ inputs.env-s3-bucket }}"
CLOUDTRAIL_KEY: ${{ steps.generate-data.outputs.aws_ec2-cloudtrail-key }}
ACTIVITY_LOGS_KEY: ${{ steps.generate-data.outputs.az_vm-activity-logs-key }}
AUDIT_LOGS_KEY: ${{ steps.generate-data.outputs.gcp-audit-logs-key }}
EC2_ASSET_INV_KEY: ${{ steps.generate-data.outputs.ec2-asset-inv-key }}
run: |
./manage_infrastructure.sh "cdr" "upload-state"
10 changes: 10 additions & 0 deletions .github/actions/cis/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,13 @@ runs:
KIBANA_URL: ${{ inputs.kibana-url }}
run: |
poetry run python ./install_agentless_integrations.py
- name: Upload tf state
id: upload-state-cis
working-directory: deploy/test-environments
env:
S3_BUCKET: "${{ inputs.env-s3-bucket }}"
EC2_CSPM_KEY: ${{ steps.generate-data.outputs.ec2-cspm-key }}
EC2_KSPM_KEY: ${{ steps.generate-data.outputs.ec2-kspm-key }}
run: |
./manage_infrastructure.sh "cis" "upload-state"
Loading

0 comments on commit 886f42e

Please sign in to comment.