generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updates content and git submodule for FedRAMP Rev5 validation (#22
) * feat: updates content from FedRAMP Rev4 to Rev5 Updates FedRAMP submodule to the latest commit The location of the XSLT has changed from the repository to the OSCAL release so the NIST submodule was removed and the download_oscal_converters script was added BREAKING CHANGE: This drops support for Rev4 validation Signed-off-by: Jennifer Power <[email protected]> --------- Signed-off-by: Jennifer Power <[email protected]> * test: adds assertions to validate command unit tests Signed-off-by: Jennifer Power <[email protected]> --------- Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
39 changed files
with
202,656 additions
and
154,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
[submodule "nist-source"] | ||
path = nist-source | ||
url = https://github.com/usnistgov/OSCAL | ||
[submodule "fedramp-source"] | ||
path = fedramp-source | ||
url = https://github.com/GSA/fedramp-automation | ||
branch = master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule fedramp-source
updated
433 files
Submodule nist-source
deleted from
143c7c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2024 IBM Corp. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# download_oscal_converters.sh | ||
# Download OSCAL XML to JSON converters from the OSCAL GitHub repo | ||
|
||
|
||
if [ -z "$1" ]; then | ||
echo "Please provide a tag name for the OSCAL release" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
directory="oscal-converters" | ||
else | ||
directory="$2" | ||
fi | ||
|
||
echo "Downloading OSCAL converters from release $1 to $directory" | ||
|
||
# Create the directory if it doesn't exist | ||
mkdir -p "$directory" | ||
pushd ./"$directory" || exit 1 | ||
|
||
# Store the long command in another variable to make it easier to read | ||
oscal_release_url="https://api.github.com/repos/usnistgov/OSCAL/releases/tags/${1}" | ||
assets_url=$(curl -sL "$oscal_release_url" | jq -r '.assets[] | select(.name | test("oscal_.*_json-to-xml-converter.xsl")) | .browser_download_url') | ||
mapfile -t release_artifacts < <(echo "$assets_url") | ||
|
||
for asset_url in "${release_artifacts[@]}"; do \ | ||
echo "Downloading $asset_url..."; \ | ||
curl -sLJO "$asset_url"; \ | ||
done | ||
|
||
popd || exit 1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.