2022-05-24 16:52:04 -03:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
2022-09-09 15:00:01 -04:00
# SOOS is the easy-to-integrate and affordable software security solution for your whole team.
2024-02-06 11:44:04 -05:00
#
2022-09-09 15:00:01 -04:00
# Learn more at https://soos.io/
2022-05-24 16:52:04 -03:00
#
2022-09-09 15:00:01 -04:00
# To use this action, perform the following steps:
2022-05-24 16:52:04 -03:00
#
2024-02-06 11:44:04 -05:00
# 1. Create an account on https://app.soos.io. SOOS offers a free 30 day trial for our SCA, DAST, and SBOM products.
2022-05-24 16:52:04 -03:00
#
2024-02-06 11:44:04 -05:00
# 2. Navigate to the "Integrate" page in the SOOS app (https://app.soos.io/integrate/dast/). Note the "API Credentials" section of this page; the keys you will need for the next step are here.
2022-09-09 15:00:01 -04:00
#
2022-11-04 20:45:41 +01:00
# 3. Set up your SOOS API Key and SOOS Client Id as Github Secrets named SOOS_API_KEY and SOOS_CLIENT_ID.
2022-09-09 15:00:01 -04:00
#
# 4. (Optional) If you'd like to upload SARIF results of DAST scans to GitHub, set SOOS_GITHUB_PAT with your Github Personal Access Token.
2022-05-24 16:52:04 -03:00
#
2024-02-06 11:44:04 -05:00
# Check for the latest version here: https://github.com/marketplace/actions/soos-dast
2022-05-24 16:52:04 -03:00
name : "SOOS DAST Scan"
on :
push :
branches : [ $default-branch, $protected-branches ]
pull_request :
branches : [ $default-branch ]
jobs :
soos :
permissions :
security-events : write # for uploading code scanning alert info
2022-11-04 20:45:41 +01:00
actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
2024-02-06 11:44:04 -05:00
name : SOOS DAST Analysis
2022-05-24 16:52:04 -03:00
runs-on : ubuntu-latest
steps :
2024-02-06 11:44:04 -05:00
- name : Run SOOS DAST Analysis
2025-01-23 19:15:51 -05:00
uses : soos-io/soos-dast-github-action@a7eb40b94c1c81eb76b178ba1befdc21823f86fa
2022-05-24 16:52:04 -03:00
with :
client_id : ${{ secrets.SOOS_CLIENT_ID }}
api_key : ${{ secrets.SOOS_API_KEY }}
2022-06-10 15:31:19 -03:00
project_name : "<YOUR-PROJECT-NAME>"
2022-05-24 16:52:04 -03:00
scan_mode : "baseline"
target_url : "https://www.example.com/"
2025-01-23 19:15:51 -05:00
export_format : "Sarif"
export_file_type : "Json"
- name : Find and rename SARIF file since it is unique
run : |
file=$(find . -name "*.sarif.json" | head -n 1)
if [ -n "$file" ]; then
mv "$file" output.sarif.json
echo "Renamed $file to output.sarif.json"
else
echo "No SARIF file found" && exit 1
fi
2022-06-10 15:31:19 -03:00
- name : Upload SOOS DAST SARIF Report
2024-04-01 16:11:05 -04:00
uses : github/codeql-action/upload-sarif@v3
2022-06-10 15:31:19 -03:00
with :
2025-01-23 19:15:51 -05:00
sarif_file : output.sarif.json