Skip to content

Commit 4108ebf

Browse files
authored
chore(project): enable fortify on demand
1 parent 7db105b commit 4108ebf

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/fortify.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)