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

Use source.config instead of configuration #1889

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Aug 26, 2024

The "global" configuration is deprecated. Instead, the config attribute for a certain policy source should be used.

This commit updates acceptance tests and docs to use the new format.

Ref: EC-688

The "global" `configuration` is deprecated. Instead, the `config`
attribute for a certain policy source should be used.

This commit updates acceptance tests and docs to use the new format.

Ref: EC-688

Signed-off-by: Luiz Carvalho <[email protected]>
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.79%. Comparing base (90bf60b) to head (9c21114).
Report is 13 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1889   +/-   ##
=======================================
  Coverage   80.79%   80.79%           
=======================================
  Files          68       68           
  Lines        5050     5050           
=======================================
  Hits         4080     4080           
  Misses        970      970           
Flag Coverage Δ
generative 80.79% <100.00%> (ø)
integration 80.79% <100.00%> (ø)
unit 80.79% <100.00%> (ø)

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

Files with missing lines Coverage Δ
cmd/validate/image.go 95.01% <100.00%> (ø)
cmd/validate/input.go 47.44% <100.00%> (ø)
cmd/validate/policy.go 92.85% <100.00%> (ø)

],
"include": [
"always_checked",
"@salsa_one_collection"
Copy link
Member

Choose a reason for hiding this comment

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

Out of scope, but I wondered - is this an intentional or unintentional comedy misspelling?

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like @zregvart added it in #1076 probably for the lolz.

exclude: []
config:
include:
- '@minimal'
Copy link
Member

@simonbaird simonbaird Aug 28, 2024

Choose a reason for hiding this comment

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

Not sure what the behavior is when both legacy "collections" and "include" are set, but should this be as follows?

Suggested change
- '@minimal'
- "*"

to match line 761 before this PR?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's inconsequential.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good question. Arguably, even the old example was a bit odd. I think this probably better captures the intent.

Copy link
Member

@simonbaird simonbaird left a comment

Choose a reason for hiding this comment

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

Thanks, that was a lot!

@lcarva lcarva merged commit 6fb93b0 into enterprise-contract:main Aug 29, 2024
16 checks passed
@lcarva lcarva deleted the EC-688 branch August 29, 2024 13:44
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