https://github.com/RedHatProductSecurity/oscal-automation-libs
https://github.com/RedHatProductSecurity/oscal-automation-libs
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/RedHatProductSecurity/oscal-automation-libs
- Owner: RedHatProductSecurity
- License: apache-2.0
- Archived: true
- Created: 2023-04-27T18:17:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-08T13:59:06.000Z (9 months ago)
- Last Synced: 2024-11-07T03:42:02.525Z (6 months ago)
- Language: Shell
- Size: 79.1 KB
- Stars: 2
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-oscal - RedHat's oscal-automation-libs
README
# oscal-automation-libs (DEPRECATED)
> #### ** This repository has been deprecated. Please refer to [trestle-bot](https://github.com/RedHatProductSecurity/trestle-bot) for an updated OSCAL automation tool. **
A common repository to share code for Makefiles, helper scripts, and IaC to support repositories with OSCAL content.
## Makefiles
`mk/` directory contains several predefined makefiles `(*.mk)`. They are imported into the top-level Makefiles.## Scripts
`scripts` contain more complicated logic that is used in some make targets and in CI.## IAC
`iac` contains code for automating deployments for assessments.
## How to consume
These shared automation resources are able to be consumed locally and through CI. This repository can be pulled in as a git submodule or subtree.
Create a Makefile to consume:
```bash
git subtree add --prefix automation/ https://github.com/RedHatProductSecurity/oscal-automation-libs.git main --squashcat << EOF >> ./Makefile
include ./automation/mk/*.mkSHELL := /bin/bash
EOFmake help
```We plan to publish the container image for the environment, but it can be built locally using the following command:
```bash
podman build -t localhost:5000/trestle-demo:latest -f Containerfile
```