File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " FOD-SAST"
2+ # Please change the events according to your needs: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - ' main'
8+
9+ jobs :
10+ SourceCode :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ actions : read
14+ contents : read
15+ security-events : write
16+ pull-requests : write
17+
18+ steps :
19+ - name : Check Out Source Code
20+ uses : actions/checkout@v4
21+
22+ - name : Setup Java
23+ uses : actions/setup-java@v4
24+ with :
25+ java-version : 11
26+ distribution : ' temurin'
27+
28+ - name : Run FoD SAST Scan
29+ uses : fortify/github-action@v1.6.3
30+ with :
31+ sast-scan : true
32+ env :
33+ FOD_TENANT : ${{ secrets.FOD_TENANT }}
34+ FOD_CLIENT_ID : ${{ secrets.FOD_API_KEY }}
35+ FOD_CLIENT_SECRET : ${{ secrets.FOD_SECRET }}
36+ FOD_RELEASE : ${{ secrets.FOD_RELEASE_ID }}
37+ FOD_URL : " https://ams.fortify.com/"
38+ FOD_API_URL : " https://api.ams.fortify.com/"
39+ FOD_SAST_SCAN_EXTRA_OPTS : --notes='Triggered by GitHub Actions (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'
40+ PACKAGE_EXTRA_OPTS : " -bt none --exclude .git/* --exclude .github/* --exclude node_modules"
41+ SC_CLIENT_VERSION : 25.2.0
You can’t perform that action at this time.
0 commit comments