-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SoteriaSoftwareLLC/develop
Initial Test of Files
- Loading branch information
Showing
9 changed files
with
158,130 additions
and
0 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 |
---|---|---|
@@ -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 |
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,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 not shown.
3,992 changes: 3,992 additions & 0 deletions
3,992
...IN2K22-01_SCC-5.8_2024-02-01_121035_XCCDF-Results_Google_Chrome_Current_Windows-2.8.6.xml
Large diffs are not rendered by default.
Oops, something went wrong.
11,170 changes: 11,170 additions & 0 deletions
11,170
compliance-scans/SOT-WIN2K22-01_SCC-5.8_2024-02-01_121035_XCCDF-Results_IE_11_STIG-2.5.7.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
63,854 changes: 63,854 additions & 0 deletions
63,854
patch-scans/1-2024-01-30-SoteriaWKS-Before.nessus
Large diffs are not rendered by default.
Oops, something went wrong.
79,048 changes: 79,048 additions & 0 deletions
79,048
patch-scans/2-2024-02-02-SoteriaSVR scan_Before.nessus
Large diffs are not rendered by default.
Oops, something went wrong.