-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: removes provider from init and moves CI templates (#344)
* fix(init): updates mismatches between init and the initial workflow files Signed-off-by: Jennifer Power <[email protected]> * feat: removes provider from init entrypoint To simplfy this feature, the provider workflows will be available in the repo under TEMPLATES to copy manually. Signed-off-by: Jennifer Power <[email protected]> * docs: updates tutorial and corrects workflows Signed-off-by: Jennifer Power <[email protected]> * test: adds back unit tests for directory validation Signed-off-by: Jennifer Power <[email protected]> * test: adds back tests for trestlebot keep file Signed-off-by: Jennifer Power <[email protected]> * fix: addresses PR feedback Signed-off-by: Jennifer Power <[email protected]> * chore(deps): removes extra dependency for importlib Signed-off-by: Jennifer Power <[email protected]> * docs: fixes GitHub tutorial steps Signed-off-by: Jennifer Power <[email protected]> * fix: updates unit tests for trestle API breaking change Signed-off-by: Jennifer Power <[email protected]> --------- Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
13 changed files
with
792 additions
and
731 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,8 @@ | ||
# Templates | ||
|
||
|
||
This directory contains workflow templates using `trestle-bot` to facilitate an editing workflow for different OSCAL models and integration with CI/CD providers. | ||
|
||
`trestle-bot` provides a ready-made integrations for GitLab CI/CD and GitHub Actions though it can be used in multiple contexts using additional flags. | ||
|
||
> Adding GitLab CI/CD workflows is on the ROADMAP |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Trestle-bot autosync ssp updates | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'profiles/**' | ||
- 'catalogs/**' | ||
- 'component-definitions/**' | ||
- 'system-security-plans/**' | ||
- 'markdown/**' | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
autosync: | ||
name: Autosync ssp content | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Run autosync | ||
id: autosync | ||
uses: RedHatProductSecurity/trestle-bot/actions/autosync@main | ||
with: | ||
markdown_path: "markdown/system-security-plans" | ||
oscal_model: "ssp" | ||
file_pattern: "*.json,markdown/*" |
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.