Skip to content

Commit

Permalink
feat: Allow extra SSC export options to be specified (closes #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Jun 4, 2024
1 parent 3ccfaed commit bf28950
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 2 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ Version of the ScanCentral SAST sensor on which the scan should be performed. Se
Extra ScanCentral SAST scan options; see [`fcli sc-sast scan start` documentation](https://fortify.github.io/fcli/v2.3.0//manpage/fcli-sc-sast-scan-start.html)


<!-- START-INCLUDE:env-ssc-export.md -->

**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.

<!-- END-INCLUDE:env-ssc-export.md -->



<!-- START-INCLUDE:env-wait-export.md -->

**`DO_WAIT`** - OPTIONAL
Expand Down Expand Up @@ -933,6 +942,15 @@ Version of the ScanCentral SAST sensor on which the scan should be performed. Se
Extra ScanCentral SAST scan options; see [`fcli sc-sast scan start` documentation](https://fortify.github.io/fcli/v2.3.0//manpage/fcli-sc-sast-scan-start.html)


<!-- START-INCLUDE:env-ssc-export.md -->

**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.

<!-- END-INCLUDE:env-ssc-export.md -->



<!-- START-INCLUDE:env-wait-export.md -->

**`DO_WAIT`** - OPTIONAL
Expand Down Expand Up @@ -1159,6 +1177,15 @@ Fortify SSC application version to use with this action. This can be specified e



<!-- START-INCLUDE:env-ssc-export.md -->

**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.

<!-- END-INCLUDE:env-ssc-export.md -->



<!-- START-INCLUDE:env-setup.md -->

**`TOOL_DEFINITIONS`** - OPTIONAL
Expand Down
2 changes: 2 additions & 0 deletions doc-resources/action-ssc-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This action exports the latest vulnerability data from an SSC application versio

{{include:env-ssc-appversion.md}}

{{include:env-ssc-export.md}}

{{include:env-setup.md}}

### Sample usage
Expand Down
2 changes: 2 additions & 0 deletions doc-resources/env-sc-sast-scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ Version of the ScanCentral SAST sensor on which the scan should be performed. Se
**`EXTRA_SC_SAST_SCAN_OPTS`** - OPTIONAL
Extra ScanCentral SAST scan options; see [`fcli sc-sast scan start` documentation]({{var:fcli-doc-base-url}}/manpage/fcli-sc-sast-scan-start.html)

{{include:env-ssc-export.md}}

{{include:env-wait-export.md}}
2 changes: 2 additions & 0 deletions doc-resources/env-ssc-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.
9 changes: 9 additions & 0 deletions sc-sast-scan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ Version of the ScanCentral SAST sensor on which the scan should be performed. Se
Extra ScanCentral SAST scan options; see [`fcli sc-sast scan start` documentation](https://fortify.github.io/fcli/v2.3.0//manpage/fcli-sc-sast-scan-start.html)


<!-- START-INCLUDE:env-ssc-export.md -->

**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.

<!-- END-INCLUDE:env-ssc-export.md -->



<!-- START-INCLUDE:env-wait-export.md -->

**`DO_WAIT`** - OPTIONAL
Expand Down
9 changes: 9 additions & 0 deletions ssc-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ Fortify SSC application version to use with this action. This can be specified e



<!-- START-INCLUDE:env-ssc-export.md -->

**`EXTRA_EXPORT_OPTS`** - OPTIONAL
This environment variable allows for passing extra options to the `fcli ssc action run github-sast-report` command. Please see the `fcli ssc action help github-sast-report` command for supported options. With the current fcli version, the most interesting option is `--fs` to specify an alternative SSC filter set, for example: `EXTRA_EXPORT_OPTS: --fs "Quick View"`.

<!-- END-INCLUDE:env-ssc-export.md -->



<!-- START-INCLUDE:env-setup.md -->

**`TOOL_DEFINITIONS`** - OPTIONAL
Expand Down
5 changes: 3 additions & 2 deletions ssc-export/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ runs:
export-path: false
fcli: action-default
- uses: fortify/github-action/internal/[email protected]
- run: ${FCLI_CMD} ssc action run github-sast-report --av "${SSC_APPVERSION}" -f ./gh-fortify-sast.sarif
shell: bash
- uses: fortify/github-action/internal/[email protected]
with:
cmd: ${FCLI_CMD} ssc action run github-sast-report --av "${SSC_APPVERSION}" -f ./gh-fortify-sast.sarif ${EXTRA_EXPORT_OPTS}
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./gh-fortify-sast.sarif
Expand Down

0 comments on commit bf28950

Please sign in to comment.