Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kadraman committed Nov 24, 2023
1 parent 2ad7c9e commit 5f985bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions .github/actions/node-fod-sast-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ runs:
FOD_APP_NAME: ${{ inputs.fod_app_name }}
FOD_RELEASE_NAME: ${{ inputs.fod_release_name }}
FOD_PARENT_RELEASE_NAME: ${{ inputs.fod_parent_release_name }}
# Since this is a Javascript project we can simply Zip up source rather than use "scancentral package" command
- name: Package Code + Dependencies
uses: TheDoctor0/[email protected]
with:
directory: ${{ inputs.working_directory }}
type: 'zip'
filename: 'package.zip'
exclusions: '*.git* config logs node_modules'
# Create FoD upload package using ScanCentral "package" action
- name: Package Code
uses: fortify/github-action/package@v1
env:
EXTRA_PACKAGE_OPTS: -bt none
PACKAGE_FILE: "package"
# Start Fortify on Demand SAST scan and wait until results complete.
- name: Perform FoD SAST scan
id: fod-sast-scan
Expand Down
14 changes: 6 additions & 8 deletions .github/actions/node-fortify-sast-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ runs:
# SSC_APP_NAME: ${{ inputs.ssc_app_name }}
# SSC_APPVER_NAME: ${{ inputs.ssc_appver_name }}
# SSC_PARENT_APPVER_NAME: ${{ inputs.ssc_parent_appver_name }}
# Since this is a Javascript project we can simply Zip up source rather than use "scancentral package" command
- name: Package Code + Dependencies
uses: TheDoctor0/[email protected]
with:
directory: ${{ env.BASE_DIR }}
type: 'zip'
filename: 'package.zip'
exclusions: '*.git* config logs node_modules'
# Create FoD upload package using ScanCentral "package" action
- name: Package Code
uses: fortify/github-action/package@v1
env:
EXTRA_PACKAGE_OPTS: -bt none
PACKAGE_FILE: "package"
# Start ScanCentral SAST scan and wait until results complete.
- name: Perform ScanCentral SAST scan
id: scancentral-sast-scan
Expand Down

0 comments on commit 5f985bb

Please sign in to comment.