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

feat: add aws ecr_repository_policy resource #1494

Merged
merged 1 commit into from Jun 8, 2022

Conversation

almog27
Copy link
Contributor

@almog27 almog27 commented May 10, 2022

Q A
πŸ› Bug fix? no
πŸš€ New feature? yes
⚠ Deprecations? no
❌ BC Break no
πŸ”— Related issues #1425
❓ Documentation snyk/driftctl-docs#240

Description

This PR adds ecr_repository_policy resource as part of the AWS coverage

@almog27 almog27 requested a review from moadibfr May 10, 2022 18:45
@almog27 almog27 requested a review from a team as a code owner May 10, 2022 18:45
@almog27 almog27 self-assigned this May 10, 2022
@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch from 7364723 to 5ca79c0 Compare May 11, 2022 08:52
@codecov-commenter
Copy link

codecov-commenter commented May 11, 2022

Codecov Report

Merging #1494 (48b668b) into main (25f5080) will decrease coverage by 0.00%.
The diff coverage is 80.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1494      +/-   ##
==========================================
- Coverage   81.71%   81.71%   -0.01%     
==========================================
  Files         439      440       +1     
  Lines       16023    16059      +36     
==========================================
+ Hits        13093    13122      +29     
- Misses       2613     2618       +5     
- Partials      317      319       +2     
Impacted Files Coverage Ξ”
pkg/remote/aws/init.go 0.00% <0.00%> (ΓΈ)
pkg/resource/resource_types.go 100.00% <ΓΈ> (ΓΈ)
pkg/remote/aws/ecr_repository_policy_enumerator.go 78.57% <78.57%> (ΓΈ)
pkg/remote/aws/repository/ecr_repository.go 70.37% <100.00%> (+10.37%) ⬆️

pkg/remote/aws/ecr_repository_policy_enumerator.go Outdated Show resolved Hide resolved
pkg/remote/aws/ecr_repository_policy_enumerator.go Outdated Show resolved Hide resolved
pkg/remote/aws/repository/ecr_repository_test.go Outdated Show resolved Hide resolved
pkg/remote/aws/repository/ecr_repository_test.go Outdated Show resolved Hide resolved
@eliecharra
Copy link
Contributor

@almog27 This one seems to be blocked in review for a couple of days, is there something blocking us there ?

@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch 7 times, most recently from 771e368 to dc392e0 Compare June 2, 2022 21:29
Copy link
Contributor

@moadibfr moadibfr left a comment

Choose a reason for hiding this comment

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

one of the error is incorrect but everything else LGTM. You could fix that and rebase so we can merge this pr.
Also, we should probably write a ticket to support deepmode for this one as policy support without policy content is not that useful (cc @sjourdan )

pkg/remote/aws/ecr_repository_policy_enumerator.go Outdated Show resolved Hide resolved
@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch 2 times, most recently from 046752c to 48b668b Compare June 7, 2022 09:21
moadibfr
moadibfr previously approved these changes Jun 7, 2022
Copy link
Contributor

@moadibfr moadibfr left a comment

Choose a reason for hiding this comment

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

πŸ‘

pkg/remote/aws/repository/ecr_repository.go Outdated Show resolved Hide resolved
pkg/remote/aws/repository/ecr_repository_test.go Outdated Show resolved Hide resolved
pkg/remote/aws_ecr_scanner_test.go Show resolved Hide resolved
@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch 4 times, most recently from 7186dd0 to ab64949 Compare June 7, 2022 12:58
sundowndev-snyk
sundowndev-snyk previously approved these changes Jun 7, 2022
Copy link
Contributor

@sundowndev-snyk sundowndev-snyk left a comment

Choose a reason for hiding this comment

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

LGTM πŸ‘

@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch from ab64949 to af8b0a3 Compare June 8, 2022 07:17
@almog27 almog27 force-pushed the feat/aws_ecr_repository_policy branch from af8b0a3 to 7fdc7cf Compare June 8, 2022 07:45
@almog27 almog27 requested a review from moadibfr June 8, 2022 07:50
@sundowndev-snyk sundowndev-snyk added the kind/enhancement New feature or improvement label Jun 8, 2022
@almog27 almog27 merged commit a50b393 into main Jun 8, 2022
@almog27 almog27 deleted the feat/aws_ecr_repository_policy branch June 8, 2022 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants