-
Notifications
You must be signed in to change notification settings - Fork 795
[Infra Only] Add NIST 800-53 Rev 5 control framework with OSCAL metadata and CIS mappings (Split per product) #14685
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
Merged
Mab879
merged 9 commits into
ComplianceAsCode:master
from
ggbecker:nist-800-53-control-split-per-product-infra-only
May 7, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ebc9d9f
Add NIST 800-53 / CIS synchronization toolkit
ggbecker a7d9f2e
Add product-specific NIST 800-53 control files
ggbecker a17d9e7
Add NIST 800-53 Control Viewer with gap analysis and dashboard
ggbecker 93f276a
Convert NIST viewer to multi-page architecture
ggbecker 5f84e97
Make family names clickable links with acronyms in viewer
ggbecker d7b0246
Split NIST viewer pages by product into separate directories
ggbecker 56ce03f
Update NIST viewer README for product-specific directory structure
ggbecker 53e0d48
Add support for all 6 NIST control status types in viewer
ggbecker c1577f8
Simplify NIST sync toolkit documentation
ggbecker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,124 @@ | ||
| name: CIS-NIST Control File Sync | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| schedule: | ||
| # Run every Sunday at 2:00 PM UTC | ||
| - cron: '0 14 * * 0' | ||
| workflow_dispatch: # Allow manual trigger | ||
|
|
||
| jobs: | ||
| generate-and-validate: | ||
| name: Generate CIS-NIST Control File and Profiles | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: fedora:latest | ||
|
|
||
| steps: | ||
| - name: Install system dependencies | ||
| run: | | ||
| dnf install -y \ | ||
| cmake \ | ||
| make \ | ||
| ninja-build \ | ||
| openscap-utils \ | ||
| python3-pyyaml \ | ||
| python3-jinja2 \ | ||
| python3-pip \ | ||
| git \ | ||
| gcc \ | ||
| gcc-c++ \ | ||
| python3-devel \ | ||
| libxml2-devel \ | ||
| libxslt-devel \ | ||
| python3-setuptools \ | ||
| libxml2 \ | ||
| expat \ | ||
| gh | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Configure git | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
|
||
| - name: Install Python dependencies | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install ruamel.yaml PyPDF2 | ||
|
|
||
| - name: Download OSCAL catalog | ||
| run: | | ||
| cd utils/nist_sync | ||
| python3 download_oscal.py | ||
|
|
||
| - name: Run CIS-NIST workflow | ||
| id: workflow | ||
| run: | | ||
| cd utils/nist_sync | ||
| echo "Running workflow for products: rhel8 rhel9 rhel10" | ||
| ./generate_cis_nist_workflow.sh --products "rhel8 rhel9 rhel10" | ||
|
|
||
| - name: Verify control files | ||
| run: ./utils/nist_sync/ci_sync.sh verify | ||
|
|
||
| - name: Render policies and generate HTML tables | ||
| run: | | ||
| cd build | ||
| ninja render-policies | ||
| cd .. | ||
| mkdir -p artifacts/tables artifacts/rendered-policies | ||
| for product in rhel8 rhel9 rhel10; do | ||
| SRC="build/$product/rendered-policies/nist_800_53.html" | ||
| DEST="artifacts/rendered-policies/nist_800_53-$product.html" | ||
| [ -f "$SRC" ] && cp "$SRC" "$DEST" | ||
| done | ||
|
|
||
| - name: Collect artifacts | ||
| run: ./utils/nist_sync/ci_sync.sh collect-artifacts | ||
|
|
||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
| name: cis-nist-artifacts-${{ github.run_number }} | ||
| path: artifacts/ | ||
| retention-days: 90 | ||
|
|
||
| - name: Generate summary report | ||
| run: ./utils/nist_sync/ci_sync.sh summarize | ||
|
|
||
| - name: Check for changes in CIS reference | ||
| id: changes | ||
| run: ./utils/nist_sync/ci_sync.sh check-changes | ||
|
|
||
| - name: Show diff summary | ||
| if: steps.changes.outputs.has_changes == 'true' | ||
| run: ./utils/nist_sync/ci_sync.sh show-diff | ||
|
|
||
| - name: Create Pull Request for scheduled runs | ||
| if: >- | ||
| (github.event_name == 'schedule' || | ||
| github.event_name == 'workflow_dispatch') && | ||
| steps.changes.outputs.has_changes == 'true' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GHA_EVENT_NAME: ${{ github.event_name }} | ||
| GHA_RUN_ID: ${{ github.run_id }} | ||
| GHA_REPOSITORY: ${{ github.repository }} | ||
| run: ./utils/nist_sync/ci_sync.sh create-pr | ||
|
|
||
| - name: Workflow Summary | ||
| if: always() | ||
| env: | ||
| GHA_EVENT_NAME: ${{ github.event_name }} | ||
| GHA_RUN_ID: ${{ github.run_id }} | ||
| HAS_CHANGES: ${{ steps.changes.outputs.has_changes }} | ||
| run: ./utils/nist_sync/ci_sync.sh workflow-summary | ||
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is enough bash here, maybe should place it in a file. Would be easier to review and run ShellCheck on.