diff --git a/cloudrun-malware-scanner/package.json b/cloudrun-malware-scanner/package.json index 3bce99e..190c461 100644 --- a/cloudrun-malware-scanner/package.json +++ b/cloudrun-malware-scanner/package.json @@ -1,6 +1,6 @@ { "name": "gcs-malware-scanner", - "version": "2.0.0", + "version": "2.1.0", "description": "Service to scan GCS documents for the malware and move the analyzed documents to appropriate buckets", "main": "index.js", "scripts": { diff --git a/cloudrun-malware-scanner/server.js b/cloudrun-malware-scanner/server.js index 4d40fb9..f2c0f22 100644 --- a/cloudrun-malware-scanner/server.js +++ b/cloudrun-malware-scanner/server.js @@ -71,7 +71,7 @@ const BUCKET_CONFIG = { const app = express(); app.use(express.json()); const scanner = clamd.createScanner(CLAMD_HOST, CLAMD_PORT); -const storage = new Storage(); +const storage = new Storage({userAgent: `${pkgJson.name}/${pkgJson.version}`}); /** * Route that is invoked by Cloud Run when a malware scan is requested