Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 630 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 630 Bytes

Loader

This runs periodically as a Cloud Function to load analysis results into BigQuery.

We use this instead of the BigQuery Data Transfer service as it does not support load jobs with WRITE_TRUNCATE.

To deploy, run the following command in this directory (/function/loader):

gcloud functions deploy load-data \
    --region=us-central1 \
    --project=ossf-malware-analysis \
    --entry-point=Load \
    --memory=512MB \
    --runtime=go116 \
    --timeout=120s \
    --trigger-topic=load-data \
    --set-env-vars=OSSF_MALWARE_ANALYSIS_RESULTS=ossf-malware-analysis-results,GCP_PROJECT=ossf-malware-analysis