Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 return the correct value for aws account id when connected to subresource #4566

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

vjeffrey
Copy link
Contributor

e.g. an s3 bucket, iam user

we were actually returning the arn of the iam user and s3 bucket in those cases, because we were grabbing the asset identifier ARN value.

this ensures we always return the account id.

tested with cnspec shell aws , cnspec shell aws --discover iam-user, cnspec shell aws --discover s3-bucket

Copy link
Contributor

Test Results

3 097 tests  ±0   3 096 ✅ ±0   1m 26s ⏱️ -5s
  370 suites ±0       1 💤 ±0 
   28 files   ±0       0 ❌ ±0 

Results for commit 04b7263. ± Comparison against base commit 8743e96.

Copy link
Contributor

@czunker czunker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks @vjeffrey

@czunker czunker merged commit 4622bb2 into main Aug 19, 2024
15 checks passed
@czunker czunker deleted the vj/fixaccountid branch August 19, 2024 11:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants