Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Matthew Burket
4527b1f76a
Update to the latest upstream release scap-security-guide-0.1.70 2023-10-18 09:12:44 -05:00
Jan Černý
95b76bd50a Update to the latest upstream release scap-security-guide-0.1.69 2023-08-03 13:45:18 +02:00
Jan Černý
01a6cbc8ad Update to the latest upstream release scap-security-guide-0.1.68 2023-06-15 13:57:16 +02:00
Matthew Burket
1a4a920fb4 Rebase to 0.1.67 2023-04-13 11:09:03 -05:00
Vojtech Polasek
18ccbcf5a5 rebase to 0.1.66 2023-02-06 13:07:21 +01:00
4 changed files with 27 additions and 87 deletions

5
.gitignore vendored
View file

@ -49,3 +49,8 @@
/scap-security-guide-0.1.63.tar.bz2
/scap-security-guide-0.1.64.tar.bz2
/scap-security-guide-0.1.65.tar.bz2
/scap-security-guide-0.1.66.tar.bz2
/scap-security-guide-0.1.67.tar.bz2
/scap-security-guide-0.1.68.tar.bz2
/scap-security-guide-0.1.69.tar.bz2
/scap-security-guide-0.1.70.tar.bz2

View file

@ -1,85 +0,0 @@
From 396fb9029e74b38ea09236c6cd1a7cb38f545afe Mon Sep 17 00:00:00 2001
From: Gabriel Becker <ggasparb@redhat.com>
Date: Wed, 1 Dec 2021 13:20:47 +0100
Subject: [PATCH] Fix jinja issue on fedora rawhide.
---
tests/unit/ssg-module/test_playbook_builder.py | 4 ++--
utils/duplicated_prodtypes.py | 4 ++--
utils/fix_file_ocilclause.py | 4 ++--
utils/move_rules.py | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/unit/ssg-module/test_playbook_builder.py b/tests/unit/ssg-module/test_playbook_builder.py
index 6692c54dfab..38b6f1f52e2 100644
--- a/tests/unit/ssg-module/test_playbook_builder.py
+++ b/tests/unit/ssg-module/test_playbook_builder.py
@@ -34,9 +34,9 @@ def test_build_rule_playbook():
assert os.path.exists(real_output_filepath)
with open(real_output_filepath, "r") as real_output:
- real_output_yaml = yaml.load(real_output)
+ real_output_yaml = yaml.load(real_output, Loader=yaml.Loader)
with open(expected_output_filepath, "r") as expected_output:
- expected_output_yaml = yaml.load(expected_output)
+ expected_output_yaml = yaml.load(expected_output, Loader=yaml.Loader)
real_play = real_output_yaml.pop()
expected_play = expected_output_yaml.pop()
diff --git a/utils/duplicated_prodtypes.py b/utils/duplicated_prodtypes.py
index 4cb2c16fef8..25c36c58d81 100755
--- a/utils/duplicated_prodtypes.py
+++ b/utils/duplicated_prodtypes.py
@@ -23,7 +23,7 @@ def _create_profile_cache(ssg_root):
files.sort()
for filename in files:
profile_path = os.path.join(prod_profiles_dir, filename)
- parsed_profile = yaml.load(open(profile_path, 'r'))
+ parsed_profile = yaml.load(open(profile_path, 'r'), Loader=yaml.Loader)
for _obj in parsed_profile['selections']:
obj = _obj
if '=' in obj:
@@ -210,7 +210,7 @@ def find_profiles(ssg_root, path, obj_name):
def parse_from_yaml(file_contents, lines):
new_file_arr = file_contents[lines[0]:lines[1] + 1]
new_file = "\n".join(new_file_arr)
- return yaml.load(new_file)
+ return yaml.load(new_file, Loader=yaml.Loader)
def print_file(file_contents):
diff --git a/utils/fix_file_ocilclause.py b/utils/fix_file_ocilclause.py
index 462d2b37c15..d79bb8c51e0 100755
--- a/utils/fix_file_ocilclause.py
+++ b/utils/fix_file_ocilclause.py
@@ -23,7 +23,7 @@ def _create_profile_cache(ssg_root):
files.sort()
for filename in files:
profile_path = os.path.join(prod_profiles_dir, filename)
- parsed_profile = yaml.load(open(profile_path, 'r'))
+ parsed_profile = yaml.load(open(profile_path, 'r'), Loader=yaml.Loader)
for _obj in parsed_profile['selections']:
obj = _obj
if '=' in obj:
@@ -205,7 +205,7 @@ def fix_ocil_clause(ssg_root, path, obj_name):
def parse_from_yaml(file_contents, lines):
new_file_arr = file_contents[lines[0]:lines[1] + 1]
new_file = "\n".join(new_file_arr)
- return yaml.load(new_file)
+ return yaml.load(new_file, Loader=yaml.Loader)
def print_file(file_contents):
diff --git a/utils/move_rules.py b/utils/move_rules.py
index 2deb62b488a..e91a661be85 100755
--- a/utils/move_rules.py
+++ b/utils/move_rules.py
@@ -340,7 +340,7 @@ def fix_ocil_clause(ssg_root, path, obj_name):
def parse_from_yaml(file_contents, lines):
new_file_arr = file_contents[lines[0]:lines[1] + 1]
new_file = "\n".join(new_file_arr)
- return yaml.load(new_file)
+ return yaml.load(new_file, Loader=yaml.Loader)
def print_file(file_contents):

View file

@ -4,7 +4,7 @@
%global _vpath_builddir build
Name: scap-security-guide
Version: 0.1.65
Version: 0.1.70
Release: 1%{?dist}
Summary: Security guidance and baselines in SCAP formats
License: BSD
@ -99,6 +99,26 @@ rm %{buildroot}/%{_docdir}/%{name}/Contributors.md
%endif
%changelog
* Thu Oct 12 2023 Matthew Burket <mburket@redhat.com> - 0.1.70-1
- Update to latest upstream SCAP-Security-Guide-0.1.70 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.70
* Thu Aug 03 2023 Jan Černý <jcerny@redhat.com> - 0.1.69-1
- Update to latest upstream SCAP-Security-Guide-0.1.69 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.69
* Thu Jun 15 2023 Jan Černý <jcerny@redhat.com> - 0.1.68-1
- Update to latest upstream SCAP-Security-Guide-0.1.68 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.68
* Wed Apr 12 2023 Matthew Burket <mburket@redhat.com> - 0.1.67-1
- Update to latest upstream SCAP-Security-Guide-0.1.67 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.67
* Mon Feb 06 2023 Vojtech Polasek <vpolasek@redhat.com> - 0.1.66-1
- Update to latest upstream SCAP-Security-Guide-0.1.66 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.66
* Tue Dec 06 2022 Marcus Burghardt <maburgha@redhat.com> - 0.1.65-1
- Update to latest upstream SCAP-Security-Guide-0.1.65 release:
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.65

View file

@ -1 +1 @@
SHA512 (scap-security-guide-0.1.65.tar.bz2) = 8c0f7431da33d80878d37cecff6afd55cfc3cc4085e987a5b0d5cecc8969373afa24c409d25bbe6de5ce1b6a718ed0d8c685a029ec7fec0c0de7d66f5040ad16
SHA512 (scap-security-guide-0.1.70.tar.bz2) = fe4d9721b7f1e982306f48922348dbbfbb4a0380f7dc423e6bc167f809d51337b39508dcd5ac62be512644434c275da85972df41da53a9b52c1f5fcabf2f2afc