-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.63 KB
/
FortifyOnDemandNewScan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Fortify on Demand SAST Scan New
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
jobs:
FoD-SAST-Scan:
# Use the appropriate runner for building your source code.
# Use Windows runner for projects that use msbuild. Additional changes to RUN commands will be required.
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Check out source code
uses: actions/checkout@v4
# Java is required to run ScanCentral Client, and may be required for your build
# Java version to use depends on the Java version required to run your build (if any),
# and the Java version supported by the ScanCentral Client version that you are running
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 17
distribution: 'zulu'
- name: Run FoD SAST Scan
uses: fortify/github-action/fod-sast-scan@v1
env:
FOD_URL: "https://emea.fortify.com/"
FOD_TENANT: ${{secrets.FOD_TENANT_DEMO}}
FOD_USER: ${{secrets.FOD_USER_DEMO}}
FOD_PASSWORD: ${{secrets.FOD_PAT_DEMO}}
FOD_RELEASE: "Sample_WebGoat_Java:2.0"
EXTRA_PACKAGE_OPTS: "-bt mvn -oss"
# EXTRA_FOD_LOGIN_OPTS: --socket-timeout=60s
# FOD_RELEASE: MyApp:MyRelease
# EXTRA_PACKAGE_OPTS: -oss
# DO_WAIT: true
# DO_EXPORT: true