Skip to content

Fortify on Demand SAST Scan New #7

Fortify on Demand SAST Scan New

Fortify on Demand SAST Scan New #7

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