Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
1.7K

codefresh-audit-exporter codefresh-audit-exporter

Export Codefresh audit log to external storage

arguments

  • CF_API_KEY - Codefresh API key
  • EXPORTER_TARGET - Type of the exporter target
  • FILTER_TIME_FROM - Get all audit log since timestamp in seconds
  • FILTER_TIME_RANGE - Time frame from current timestamp to download the audit log
  • FILTER_TIME_TO - Get all audit log up to timestamp in seconds
  • GOOGLE_BUCKET_NAME - Name of the bucket in Google cloud, where to upload the audit-log
  • GOOGLE_PROJECT_ID - Name of the project-id in google cloud
  • GOOGLE_STORAGE - Name of the integration of your Google storage in Codefresh
    Freestyle:
  type: codefresh-audit-exporter
  arguments:
    CF_API_KEY: '${{CF_API_KEY}}'
    GOOGLE_STORAGE: '${{GOOGLE_STORAGE}}'
    GOOGLE_BUCKET_NAME: '${{GOOGLE_BUCKET_NAME}}'

  
github.com
Oleg Sucharevich
Jul 4, 2021