Skip to content

Commit

Permalink
Updated FAST scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kadraman committed Jun 12, 2024
1 parent 0b81cef commit 702e770
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 104 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
runFAST:
description: 'Run Fortify ScanCentral FAST'
runFortifyFAST:
description: 'Run Fortify ScanCentral FAST Scan'
required: false
default: 'true'

# Global environment variables
env:
DEFAULT_APP_NAME: "IWA"
DEFAULT_PYTHON_VERSION: "3.12.3"
DEFAULT_FAST_PORT: 8087

jobs:

FAST-Scan:
Fortify-FAST-Scan:
runs-on: ubuntu-latest
if: ${{ (github.event.inputs.runFAST == 'true') }}
if: ${{ (github.event.inputs.runFortifyFAST == 'true') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -56,10 +57,18 @@ jobs:
# SCANCENTRAL_DAST_API: ${{ vars.FORTIFY_SCDAST_API_URL }}
# SSC_CI_TOKEN: ${{ secrets.FORTIFY_SSC_TOKEN }}
# SCANCENTRAL_DAST_CICD_TOKEN: ${{ vars.FORTIFY_SCDAST_CICD_TOKEN }}
- name: Set up Python 3.12
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
install-chromedriver: true
id: setup-chrome
- run: |
${{ steps.setup-chrome.outputs.chrome-path }} --version
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.12.3
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
- name: Install pipenv
run: pip install pipenv
- name: Run Selenium Tests
Expand All @@ -81,4 +90,3 @@ jobs:
SCANCENTRAL_DAST_API: ${{ vars.FORTIFY_SCDAST_API_URL }}
SSC_CI_TOKEN: ${{ secrets.FORTIFY_SSC_TOKEN }}
SCANCENTRAL_DAST_CICD_TOKEN: ${{ vars.FORTIFY_SCDAST_CICD_TOKEN }}
# TBD
3 changes: 1 addition & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def chrome_browser():
options.add_argument("--ignore-certificate-errors")
options.add_argument("--disable-popup-blocking")
options.add_argument("--incognito")
options.add_argument("--headless=new")
# comment out below if not using FAST proxy
#chrome_options.add_argument('--proxy-server=%s' % FAST_PROXY)

Expand Down
95 changes: 0 additions & 95 deletions tests/test_basic_selenium.py.old

This file was deleted.

0 comments on commit 702e770

Please sign in to comment.