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

Populate valued tag, not just last occurance #28

Open
em-c-rod opened this issue Apr 21, 2023 · 0 comments
Open

Populate valued tag, not just last occurance #28

em-c-rod opened this issue Apr 21, 2023 · 0 comments

Comments

@em-c-rod
Copy link
Contributor

If a tag appears twice at the top level of a control, the last value will be printed out.

For example:
If the original control has two satisfies tags like shown below:

  tag 'satisfies': ['SRG-OS-000257-GPOS-00098', 'SRG-OS-000278-GPOS-00108']
  tag 'gid': 'V-204392'
  tag 'rid': 'SV-204392r646841_rule'
  tag 'stig_id': 'RHEL-07-010010'
  tag 'fix_id': 'F-36302r646840_fix'
  tag 'cci': ['CCI-001494', 'CCI-001496', 'CCI-002165', 'CCI-002235']
  tag nist: ['AU-9', 'AU-9 (3)', 'AC-3 (4)', 'AC-6 (10)']
  tag subsystems: ['permissions', 'package', 'rpm']
  tag 'host', 'container', 'satisfies'

The new control will result in:
tag satisfies: nil

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

No branches or pull requests

1 participant