google / google/gcp_scanner

Scanning with multiple keys from the same project fails

Open
#142 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
370
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

If you have two different keys for the same project in a scan, only the first scan will be saved since the log files are named [project]_[timestamp].json.

**To Reproduce**

1. Put two different keys for the same project in a directory
2. Run GCP Scanner with these keys

**Expected behavior**

Perform the scan and create two different log files, one for each key, probably by adding the key id to the filename as well.

**Current behavior**

The first key works fine but the second will fail with an error since the name of the log files collide.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.