SOOS Dast Feature Update (#2733)
* Update soos-dast-scan.yml * Update soos-dast-scan.yml * Update soos-dast-scan.yml
This commit is contained in:
@@ -36,15 +36,25 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run SOOS DAST Analysis
|
- name: Run SOOS DAST Analysis
|
||||||
uses: soos-io/soos-dast-github-action@65d9878d77c8993f3db9e86a92bc2ad3a6e060af
|
uses: soos-io/soos-dast-github-action@a7eb40b94c1c81eb76b178ba1befdc21823f86fa
|
||||||
with:
|
with:
|
||||||
client_id: ${{ secrets.SOOS_CLIENT_ID }}
|
client_id: ${{ secrets.SOOS_CLIENT_ID }}
|
||||||
api_key: ${{ secrets.SOOS_API_KEY }}
|
api_key: ${{ secrets.SOOS_API_KEY }}
|
||||||
project_name: "<YOUR-PROJECT-NAME>"
|
project_name: "<YOUR-PROJECT-NAME>"
|
||||||
scan_mode: "baseline"
|
scan_mode: "baseline"
|
||||||
target_url: "https://www.example.com/"
|
target_url: "https://www.example.com/"
|
||||||
output_format: "sarif"
|
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
|
||||||
- name: Upload SOOS DAST SARIF Report
|
- name: Upload SOOS DAST SARIF Report
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: output.sarif.json
|
||||||
|
|||||||
Reference in New Issue
Block a user