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

Prevent conflicts in references #11555

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

jan-cerny
Copy link
Collaborator

Description:

If a reference type is provided by a control file it shouldn't be set in rule.yml. We add a build time check that interrupts the build if there is a conflict.

Rationale:

This check ensures that the references are centralized in control files.

Review Hints:

Add a reference that should be generated by control file to your favorite rule and then build the product. Check that the build fails. For example, add cis@rhel9: 1.2.3.4 to references: in linux_os/guide/system/selinux/selinux_state/rule.yml and run ./build_product -d rhel9.

If a reference type is provided by a control file it shouldn't
be set in rule.yml. We add a build time check that interrupts
the build if there is a conflict. This check ensures that the
references are centralized in control files.
@jan-cerny jan-cerny added the Infrastructure Our content build system label Feb 7, 2024
@jan-cerny jan-cerny added this to the 0.1.73 milestone Feb 7, 2024
Copy link

github-actions bot commented Feb 7, 2024

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

codeclimate bot commented Feb 7, 2024

Code Climate has analyzed commit cdd7439 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 66.6% (50% is the threshold).

This pull request will bring the total coverage in the repository to 58.4% (0.0% change).

View more on Code Climate.

@jan-cerny
Copy link
Collaborator Author

/packit retest-failed

@Mab879 Mab879 self-assigned this Feb 7, 2024
@jan-cerny
Copy link
Collaborator Author

/packit retest-failed

Copy link
Member

@Mab879 Mab879 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.

@Mab879 Mab879 merged commit 3455c33 into ComplianceAsCode:master Feb 7, 2024
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants