Giter Club home page Giter Club logo

openrmfpro-ghactions's Introduction

openrmfpro-ghactions

OpenRMF Professional public repo to show how to handle files and API interactions via GitHub Actions.

You can use GitHub Actions to process new/changed files in a GitHub repository and automatically push to OpenRMF Professional for tracking your cyber compliance. If you use GitHub for storing scan results for your ATO or accreditation package such asCKL, SCAP XML, you can easily enable automated ingest into OpenRMF Professional. Do the same for compliance statements, hardware, software, PPSM, mitigation statements and other lists to use for OpenRMF Professional with this simple workflow.

https://dale-bingham-soteriasoftware.medium.com/using-github-actions-and-the-openrmf-professional-api-for-automating-cyber-compliance-c4a174c78163

Get a list of files

Used a GH action from the marketplace to list changed files easily.

DO NOT USE SPACES IN FILENAMES

https://stackoverflow.com/questions/74854189/call-external-rest-api-when-a-file-is-added-or-updated-to-a-github-repository

https://github.com/marketplace/actions/changed-files

Do something with them

For us, we posted them to OpenRMF Professional via a simple curl command using the server, system package, application key and api token for our calls.

An example URL for the checklist/SCAP upload is below with relevant information:

https://{root-url}/api/external/systempackage/{systemKey}/scapchecklist/?applicationKey={applicationKey}

formdata:
  checklistFile *.xml/*.ckl/*.nessus/*.csv

Authorization Token is the Bearer, space, then the API Token

Files are in directories to keep them separate

You can get a list of all files, all files in a directory, all files by directory, etc. and process as required.

We used simple named files but you can do this any way you wish.

openrmfpro-ghactions's People

Contributors

dalebinghamsoteriasoft avatar

Stargazers

Austin Songer,MIS,CEH,ESCA,Project+ (Navy Veteran) avatar

Forkers

austinsonger

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.