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

Allow unpinned refs in descriptor/image_manifest #2255

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Jan 10, 2025

This commit changes the ec.oci.descriptor and the ec.oci.image_manifest rego functions to allow image refs without a digest to be used.

This allows rego policies to be more granular by splitting the "pinned" checks from the "availability" checks.

Ref: EC-1038

This commit changes the `ec.oci.descriptor` and the
`ec.oci.image_manifest` rego functions to allow image refs without a
digest to be used.

This allows rego policies to be more granular by splitting the "pinned"
checks from the "availability" checks.

Ref: EC-1038

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.74%. Comparing base (9d4f0a8) to head (a398353).
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2255      +/-   ##
==========================================
+ Coverage   72.69%   72.74%   +0.04%     
==========================================
  Files          88       88              
  Lines        7622     7656      +34     
==========================================
+ Hits         5541     5569      +28     
- Misses       2081     2087       +6     
Flag Coverage Δ
generative 72.74% <100.00%> (+0.04%) ⬆️
integration 72.74% <100.00%> (+0.04%) ⬆️
unit 72.74% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
internal/rego/oci/oci.go 95.54% <100.00%> (-1.22%) ⬇️

@lcarva
Copy link
Member Author

lcarva commented Jan 13, 2025

/retest

@lcarva lcarva merged commit 07a1fc2 into enterprise-contract:main Jan 13, 2025
11 checks passed
@lcarva lcarva deleted the EC-1038 branch January 13, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants