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

Add the ability to load controls from folder #7876

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Nov 12, 2021

Description:

Loads controls from files matching controls/control_file/*.yml.

Rationale:

To help control the length of the control files.

To help control the length of the control files
@Mab879 Mab879 added the Infrastructure Our content build system label Nov 12, 2021
yaml_contents = ssg.yaml.open_and_expand(full_path, self.env_yaml)
controls_tree.append(yaml_contents)
else:
raise RuntimeError("Found non yaml file in %s" % self.controls_dir)
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe skip vim swap files and other temporary files

ssg/controls.py Show resolved Hide resolved
@jan-cerny jan-cerny self-assigned this Nov 16, 2021
@jan-cerny jan-cerny added this to the 0.1.60 milestone Nov 16, 2021
Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

It's amazing!

- var_accounts_tmout=10_min
- configure_crypto_policy
notes: >-
Certain period of inactivity is vague.
Copy link
Collaborator

Choose a reason for hiding this comment

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

There should be newline at the end of the file.

@jan-cerny jan-cerny merged commit 1bab60a into ComplianceAsCode:master Nov 16, 2021
This pull request was closed.
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