Skip to content

Update offensive360.yml #3

Update offensive360.yml

Update offensive360.yml #3

Workflow file for this run

name: Offensive 360 SAST Scan
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
sast-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create archive
run: |
zip -r source.zip . \
--exclude "*.git*" \
--exclude "node_modules/*" \
--exclude ".env*"
- name: Submit to Offensive 360
env:
O360_API_KEY: ${{ secrets.O360_API_KEY }}
run: |
HTTP_CODE=$(curl -s -o /tmp/o360_resp.json -w "%{http_code}" -X POST \
-H "Authorization: Bearer $O360_API_KEY" \
-F "FileSource=@source.zip" \
-F "Name=testing123github" \
-F "ExternalScanSourceType=5" \
-F "DontWaitForScanToComplete=true" \
-F "AllowDependencyScan=true" \
-F "AllowLicenseScan=true" \
-F "AllowMalwareScan=true" \
-F "PipelineUrl=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
"https://sast.offensive360.com/app/api/ExternalScan")
cat /tmp/o360_resp.json
[ "$HTTP_CODE" -eq 200 ] || [ "$HTTP_CODE" -eq 201 ] || exit 1
- name: View results
if: always()
run: echo "Results: https://sast.offensive360.com/Projects"

Check failure on line 42 in .github/workflows/offensive360.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/offensive360.yml

Invalid workflow file

You have an error in your yaml syntax on line 42