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+ pull_request :
5+ workflow_dispatch :
6+ push :
7+ branches :
8+ - ' main'
9+
10+ jobs :
11+ SourceCode :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ actions : read
15+ contents : read
16+ security-events : write
17+ pull-requests : write
18+
19+ steps :
20+ - name : Check Out Source Code
21+ uses : actions/checkout@v4
22+
23+ - name : Setup Java
24+ uses : actions/setup-java@v4
25+ with :
26+ java-version : 11
27+ distribution : ' temurin'
28+
29+ - name : Run FoD SAST Scan
30+ uses : fortify/github-action@v1.6.3
31+ with :
32+ sast-scan : true
33+ env :
34+ FOD_TENANT : ${{ secrets.FOD_TENANT }}
35+ FOD_CLIENT_ID : ${{ secrets.FOD_API_KEY }}
36+ FOD_CLIENT_SECRET : ${{ secrets.FOD_SECRET }}
37+ FOD_RELEASE : ${{ secrets.FOD_RELEASE_ID }}
38+ FOD_URL : " https://ams.fortify.com/"
39+ FOD_API_URL : " https://api.ams.fortify.com/"
40+ FOD_SAST_SCAN_EXTRA_OPTS : --notes='Triggered by GitHub Actions (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'
41+ PACKAGE_EXTRA_OPTS : " -bt gradle --exclude .git/* --exclude .github/* --exclude node_modules"
42+ SC_CLIENT_VERSION : 25.2.0
You can’t perform that action at this time.
0 commit comments