-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: updates README.md with Getting Started and design info (#91)
* docs: updates README.md with Getting Started and design info Signed-off-by: Jennifer Power <[email protected]> * docs: align terminology with trestle-bot command names Signed-off-by: Jennifer Power <[email protected]> * docs: updates master branch to main the README.md Signed-off-by: Jennifer Power <[email protected]> --------- Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
6 changed files
with
111 additions
and
114 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,4 +1,4 @@ | ||
name: Profile Autofix | ||
name: Profile autosync | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -13,7 +13,7 @@ concurrency: | |
|
||
jobs: | ||
auto-update: | ||
name: Autofix profile content | ||
name: autosync profile content | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate app token | ||
|
@@ -29,8 +29,8 @@ jobs: | |
with: | ||
ref: ${{ inputs.branch }} | ||
token: ${{ steps.get_installation_token.outputs.token }} | ||
- name: Autofix profile | ||
id: autofix-profile | ||
- name: autosync profile | ||
id: autosync-profile | ||
uses: RedHatProductSecurity/trestle-bot/actions/[email protected] | ||
with: | ||
markdown_path: "markdown/profiles" | ||
|
6 changes: 3 additions & 3 deletions
6
.github/workflows/manual-autofix.yml → .github/workflows/manual-autosync.yml
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,11 +1,11 @@ | ||
name: Run autofix adhoc | ||
name: Run autosync adhoc | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-autofix: | ||
uses: ./.github/workflows/autofix-profile.yml | ||
call-autosync: | ||
uses: ./.github/workflows/autosync-profile.yml | ||
with: | ||
branch: ${{ github.ref_name }} | ||
secrets: inherit |
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,41 @@ | ||
# Design | ||
|
||
In the repository, GitHub Actions is used to manage the trestle workspace. This document describes the purpose and design of each workflow. | ||
|
||
## Workflows | ||
|
||
#### Create | ||
|
||
Associated Workflows | ||
- [create-new.yml](../.github/workflows/create-new.yml) | ||
|
||
The `create-new` workflow is triggered manually by going to the Action tab. This creates a new OSCAL profile in the trestle workspace. A new branch is created and a pull request is opened. | ||
|
||
#### Autosync content | ||
|
||
Associated Workflows | ||
- [autosync-profile.yml](../.github/workflows/autosync-profile.yml) | ||
- [manual-autosync.yml](../.github/workflows/manual-autosync.yml) | ||
- [validate.yml](../.github/workflows/validate.yml) | ||
|
||
The `validate` workflow is triggered when a pull request is created or updated with updates to component definitions. It validates the trestle workspace and automatically sync any difference between the OSCAL JSON files and trestle managed Markdown files. The same workflow can be triggered through the Action tab using the `Run autosync adhoc` workflow. The `autosync-profile.yml` has all common logic for both workflows. The `validate.yml` and `manual-autosync.yml` workflows adds customer triggers and logic. | ||
|
||
The `validate` workflow will run checks with read-only permissions when a pull request is opened from a from a fork, but the autosync workflow will not run. | ||
|
||
#### Update Profile | ||
|
||
Associated Workflows | ||
- [update-upstream.yml](../.github/workflows/update-upstream.yml) | ||
|
||
The `update-uptream` workflow is triggered manually to pull in updated profile and catalog information from upstream sources. This will update the profile information in the trestle workspace and open a pull request. | ||
|
||
#### Release | ||
|
||
Associated Workflows | ||
- [dispatch.yml](../.github/workflows/dispatch.yml) | ||
- [release.yml](../.github/workflows/release.yml) | ||
|
||
|
||
The `release` workflow is triggered manually to assign a release version to the profiles in the repository. The artifacts are synced, version and changes are push back to the branch. An associated tag for the release is created and a GitHub release is created. Once, the release is publish, the `dispatch` workflow is triggered to notfiy downstream repositories. | ||
|
||
|
This file was deleted.
Oops, something went wrong.