Authoring Tutorial
This tutorial provides an overview of the authoring process using complyscribe
. We will use the component definition created in the GitHub tutorial as our starting point. This tutorial will demonstrate the workflow for updating Markdown content and syncing those changes to OSCAL.
1. Prerequisites
- Complete the GitHub tutorial
2. Edit in Markdown
We will begin where we left off at the end of the GitHub tutorial. Our repository has a newly created component definition named my-first-compdef
with corresponding content in the markdown/
and component-definitions/
directories. We will now demonstrate how to author changes in Markdown and produce updated OSCAL content.
- Navigate to the
markdown/component-definitions/my-first-compdef/test-component/nist_rev5_800_53/ac
directory and select theac-1.md
file. - Click the
Edit this file
(pencil) icon. - Scroll down to the section titled
## What is the solution and how is it implemented?
and add a new line of text with a brief comment. For example:
## What is the solution and how is it implemented?
Here is where details should be added by the author.
- Click the
Commit changes..
button - Select the
Create a new branch for this commit and start a pull request
radio button - Click
Propose changes
The Open a pull request
page now opens. Enter any additional details about your changes into the description box.
- Click
Create pull request
- For demo purposes, we will go ahead and merge the pull request ourselves. In a production setting the pull request process should be used for review, discussion and approval of the proposed changes. Click
Merge pull request
and thenConfirm merge
.
Autosync
Once the pull request has been merged the complyscribe rules-transform and autosync
GitHub action will be triggered. We will now validate that action was successful.
- Navigate to the
Actions
tab of your GitHub repository. - The top entry in the list of workflow runs should be titled
Merge pull request #<your PR number> from <your repo/your branch>
. This action should be either running or have just successfully completed. - [Optional] Clicking this entry will allow you to view the detailed steps and log output.
- Once the action is completed successfully, navigate back to the source code by clicking the
Code
tab of the repo. - Click the
component-definitions
folder and navigate tomy-first-compdef/component-definition.json
. - The
Last commit date
should align with the time the action completed. - Click the
component-definitions.json
file and then click theHistory
icon to view the commit history. - Ensure the latest commit performed by the GitHub action reflects the changes made in Markdown as shown below:
"description": "",
"description": "Here is where details should be added by the author",
You will also notice the "last-modified"
timestamp has been updated.
Congrats! You've successfully authored a change by modifying a Markdown file and letting complyscribe sync those changes back to the OSCAL content.