Skip to content

Fortify AST Scan

Fortify AST Scan #133

Workflow file for this run

################################################################################################################################################
# Fortify lets you build secure software fast with an appsec platform that automates testing throughout the DevSecOps pipeline. Fortify static,#
# dynamic, interactive, and runtime security testing is available on premises or as a service. To learn more about Fortify, start a free trial #
# or contact our sales team, visit microfocus.com/appsecurity. #
# #
# Use this workflow template as a basis for integrating Fortify on Demand Static Application Security Testing(SAST) into your GitHub workflows.#
# This template demonstrates the steps to prepare the code+dependencies, initiate a scan, download results once complete and import into #
# GitHub Security Code Scanning Alerts. Existing customers should review inputs and environment variables below to configure scanning against #
# an existing application in your Fortify on Demand tenant. Additional information is available in the comments throughout the workflow, the #
# documentation for the Fortify actions used, and the Fortify on Demand / ScanCentral Client product documentation. If you need additional #
# assistance with configuration, feel free to create a help ticket in the Fortify on Demand portal. #
################################################################################################################################################
name: Fortify AST Scan
on:
workflow_dispatch:
pull_request:
branches: [ "Gartner-demo" ]
push:
branches: [ "Gartner-demo" ]
jobs:
Fortify-AST-Scan:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
security-events: write
pull-requests: write
steps:
# Check out source code
- name: Check Out Source Code
uses: actions/checkout@v7
# Java is required to build IWA-Java
- name: Setup Java
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'temurin'
# Perform Fortify scan, audit, remediation, and policy check.
- name: Run FoD SAST+SCA Scan
uses: fortify/github-action@v3
env:
FOD_URL: https://ams.fortify.com
FOD_TENANT: ${{secrets.FOD_GARTNER_TENANT}}
FOD_CLIENT_ID: ${{secrets.FOD_GARTNER_CLIENT_ID}}
FOD_CLIENT_SECRET: ${{secrets.FOD_GARTNER_CLIENT_SECRET}}
DO_SAST_SCAN: true # Run SAST scan (default)
DO_SCA_SCAN: true # Run SCA scan
DO_AVIATOR_AUDIT: true # AI-assisted audit of scan results
DO_AVIATOR_REMEDIATIONS: true # AI-assisted remediation PR generation
DO_CHECK_POLICY: true # Fail workflow if security policy is violated