Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert File Type for Files or Remote Hyperlinks in Continuous Deployment #1010

Conversation

ohsh6o
Copy link
Contributor

@ohsh6o ohsh6o commented Aug 18, 2021

Committer Notes

This PR, as part of enhancements to the current CD pipeline will fix relevant missed conversions between XML and JSON and YAML filetypes, and their respective MIME types, in place of perl and sed issues. This will fix usnistgov/oscal-content/#59 and GSA/fedramp-automation#129 on an ongoing basis.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you squashed any non-relevant commits and commit messages? [instructions]
  • Do all automated CI/CD checks pass?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you included examples of how to use your new feature(s)?
  • Have you updated all OSCAL website and readme documentation affected by the changes you made? Changes to the OSCAL website can be made in the docs/content directory of your branch.

@ohsh6o
Copy link
Contributor Author

ohsh6o commented Aug 18, 2021

@david-waltermire-nist, will you be expecting tests for this script? If so, I can work on adding them.

@ohsh6o
Copy link
Contributor Author

ohsh6o commented Aug 18, 2021

Additionally, is there a way to exempt certain URL patterns with this config and tool? It is looking at the Github Actions YAML and finding issues with templated URLs as it does not bind the variable declarations.

@ohsh6o
Copy link
Contributor Author

ohsh6o commented Aug 23, 2021

@david-waltermire-nist were you able to get a chance to review this work? Do you have any immediate feedback, or do I need to meet with you and your team to more formally review? Thanks!

@ohsh6o
Copy link
Contributor Author

ohsh6o commented Aug 28, 2021

Sorry, @david-waltermire-nist, I was unable to make time to update function comments and make some required fixes after feedback earlier this week. I will take care of this when I return. Thanks!

@ohsh6o ohsh6o force-pushed the gsa-fedramp-issue-129-auto-convert-file-paths branch from 1c3836f to d0c15f9 Compare September 22, 2021 00:45
@ohsh6o
Copy link
Contributor Author

ohsh6o commented Sep 28, 2021

@david-waltermire-nist sorry for the delays. I have commented functions; it should be ready for review.

@david-waltermire david-waltermire changed the base branch from main to feature-oscal-content-59-convert-file-paths December 10, 2021 18:53
@david-waltermire david-waltermire merged commit 18d5892 into usnistgov:feature-oscal-content-59-convert-file-paths Dec 10, 2021
david-waltermire added a commit that referenced this pull request Jan 21, 2022
…ment (#1070)

* Convert File Type for Files or Remote Hyperlinks in Continuous Deployment (#1010)

* First attempt at Python script to clean up extensions.
* Add Python deps manifest.
* Update Dockerfile with Python dependencies.
* Remove additive dot before file ext and try out adding to CI harness.
* Add first attempt of Python converter.
* updated the tools table
* Rename handler function accordingly, so docs make sense.
* Fix bug with hard-coded conversion for JSON processing.
* Add some more function documentation.
* Complete update of function docstrings.
* A little more function documentation.
* Final function signature touch-ups.

Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Co-authored-by: David Waltermire <david.waltermire@nist.gov>

* fix python calls to use correct python version and script

Co-authored-by: Alexander Stein (Inactive) <61464190+ohsh6o@users.noreply.github.com>
Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
@david-waltermire david-waltermire added this to the OSCAL 1.0.1 milestone Jan 30, 2022
iMichaela added a commit to iMichaela/OSCAL that referenced this pull request Apr 7, 2022
…ment (usnistgov#1070)

* Convert File Type for Files or Remote Hyperlinks in Continuous Deployment (usnistgov#1010)

* First attempt at Python script to clean up extensions.
* Add Python deps manifest.
* Update Dockerfile with Python dependencies.
* Remove additive dot before file ext and try out adding to CI harness.
* Add first attempt of Python converter.
* updated the tools table
* Rename handler function accordingly, so docs make sense.
* Fix bug with hard-coded conversion for JSON processing.
* Add some more function documentation.
* Complete update of function docstrings.
* A little more function documentation.
* Final function signature touch-ups.

Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Co-authored-by: David Waltermire <david.waltermire@nist.gov>

* fix python calls to use correct python version and script

Co-authored-by: Alexander Stein (Inactive) <61464190+ohsh6o@users.noreply.github.com>
Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Rene2mt pushed a commit to Rene2mt/OSCAL that referenced this pull request May 17, 2022
…ment (usnistgov#1070)

* Convert File Type for Files or Remote Hyperlinks in Continuous Deployment (usnistgov#1010)

* First attempt at Python script to clean up extensions.
* Add Python deps manifest.
* Update Dockerfile with Python dependencies.
* Remove additive dot before file ext and try out adding to CI harness.
* Add first attempt of Python converter.
* updated the tools table
* Rename handler function accordingly, so docs make sense.
* Fix bug with hard-coded conversion for JSON processing.
* Add some more function documentation.
* Complete update of function docstrings.
* A little more function documentation.
* Final function signature touch-ups.

Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Co-authored-by: David Waltermire <david.waltermire@nist.gov>

* fix python calls to use correct python version and script

Co-authored-by: Alexander Stein (Inactive) <61464190+ohsh6o@users.noreply.github.com>
Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants