Skip to content

Commit

Permalink
Merge pull request #1 from SoteriaSoftwareLLC/develop
Browse files Browse the repository at this point in the history
Initial Test of Files
  • Loading branch information
DaleBinghamSoteriaSoft authored Mar 3, 2024
2 parents 1877f39 + 1375ac5 commit 1bf3971
Show file tree
Hide file tree
Showing 9 changed files with 158,130 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
37 changes: 37 additions & 0 deletions .github/workflows/uploadFiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Upload Files

on:
push:
branches:
- main

jobs:
# -------------------------------------------------------------
# Using GitHub's API is not supported for push events
# -------------------------------------------------------------
#
# ----------------------------------------------------------------------------------------------
# Using local .git history
# ----------------------------------------------------------------------------------------------
# Event `push`: Compare the preceding remote commit -> to the current commit of the main branch
# ----------------------------------------------------------------------------------------------
changed_files:
runs-on: ubuntu-latest # windows-latest || macos-latest
name: Track changed-files
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.

- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
# openrmfpro-ghactions
OpenRMF Professional public repo to show how to handle files and API interactions via GitHub Actions


## Get a list of files

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

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


## Do something with them

https://github.com/fjogeleit/http-request-action/blob/main/.github/workflows/ci.yml

https://github.com/fjogeleit/http-request-action/

```
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
Binary file added approved-pps/sp-sample-approvedpps.xlsx
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
63,854 changes: 63,854 additions & 0 deletions patch-scans/1-2024-01-30-SoteriaWKS-Before.nessus

Large diffs are not rendered by default.

79,048 changes: 79,048 additions & 0 deletions patch-scans/2-2024-02-02-SoteriaSVR scan_Before.nessus

Large diffs are not rendered by default.

0 comments on commit 1bf3971

Please sign in to comment.