name: Fortify on Demand Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
fortify:
runs-on: ubuntu-latest
# permissions: # When overriding default permissions, following are required:
# contents: read # Required for checkout action
# security-events: write # Required for publishing security reports to GitHub Security tab
# pull-requests: write # Required if DO_PR_COMMENT is set to true
steps:
- uses: actions/checkout@v4 # Check out source code
- uses: actions/setup-<build-tool>@vX # Set up build tool(s) required to build your project
- uses: fortify/github-action@v3 # Run Fortify scans
env:
FOD_URL: ${{ vars.FOD_URL }}
FOD_CLIENT_ID: ${{ secrets.FOD_CLIENT_ID }}
FOD_CLIENT_SECRET: ${{ secrets.FOD_CLIENT_SECRET }}
# FOD_RELEASE: MyApp:main # Optional: defaults to repo:branch
# FCLI_BOOTSTRAP_VERSION: v3.15 # Optional if you prefer stability over latestname: Fortify SSC Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
fortify:
runs-on: ubuntu-latest
# permissions: # When overriding default permissions, following are required:
# contents: read # Required for checkout action
# security-events: write # Required for publishing security reports to GitHub Security tab
# pull-requests: write # Required if DO_PR_COMMENT is set to true
steps:
- uses: actions/checkout@v4 # Check out source code
- uses: actions/setup-<build-tool>@vX # Set up build tool(s) required to build your project
- uses: fortify/github-action@v3 # Run Fortify scans
env:
SSC_URL: ${{ vars.SSC_URL }}
SSC_TOKEN: ${{ secrets.SSC_TOKEN }}
SC_SAST_TOKEN: ${{ secrets.SC_SAST_TOKEN }}
# SSC_APPVERSION: MyApp:main # Optional: defaults to repo:branchname: Custom Fortify Workflow
on: [push]
jobs:
custom-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fortify/github-action/setup@v3
with:
fcli: bootstrapped # Set up bootstrapped fcli version. May also specify specific version, but
# then fcli may be downloaded twice (bootstrap version and requested version).
env:
FCLI_BOOTSTRAP_VERSION: v3.15.0 # Defaults to latest v3.x.y, pin to specific version for stability
- name: Run custom fcli commands
run: |
fcli fod session login ...
# Your custom workflow here
fcli fod session logout ...Given that these GitHub Actions are just thin wrappers around @fortify/setup and fcli, detailed usage documentation is available on the fcli documentation website:
fortify/github-actionfor OpenText Application Security Code (Fortify on Demand)fortify/github-actionfor OpenText Software Security Center (Fortify SSC)fortify/github-action/setup
This document was auto-generated from USAGE.template.md; do not edit by hand