-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new GH job to generate CSV table and HTML page with SRG mapping.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: SRG Mapping Table | ||
on: | ||
# push: | ||
# branches: [ 'master' ] | ||
pull_request: | ||
branches: [ 'master', 'stabilization*' ] | ||
jobs: | ||
publish: | ||
name: SRG Mapping Table | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fedora:latest | ||
steps: | ||
- name: Install Deps | ||
run: dnf install -y cmake git ninja-build openscap-utils python3-pyyaml python3-jinja2 python3-pytest ansible-lint expat libxslt python3-pip rsync | ||
- name: Install deps python | ||
run: pip3 install pandas | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build rule dir json | ||
run: ./utils/rule_dir_json.py | ||
- name: Generate CSV and HTML | ||
run: ./utils/create_srg_export.py -c controls/stig_rhel9.yml -p rhel9 -m shared/references/disa-os-srg-v2r2.xml --output srg-mapping-rhel9.csv | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: srg-mapping-rhel9.csv | ||
path: srg-mapping-rhel9.csv | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: srg-mapping-rhel9.html | ||
path: srg-mapping-rhel9.csv.html |
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