From b669ca0fc7904db3d55450747a4261832f26ea0f Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Fri, 31 May 2024 23:50:24 +0200 Subject: [PATCH] feat: Add Debricked Scan->SSC action (closes #41) --- doc-resources/action-ssc-debricked-scan.md | 1 + .../ssc-debricked-scan/README.template.md | 11 ++++++ ssc-debricked-scan/README.md | 37 +++++++++++++++++++ ssc-debricked-scan/action.yml | 26 +++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 doc-resources/action-ssc-debricked-scan.md create mode 100644 doc-resources/templates/ssc-debricked-scan/README.template.md create mode 100644 ssc-debricked-scan/README.md create mode 100644 ssc-debricked-scan/action.yml diff --git a/doc-resources/action-ssc-debricked-scan.md b/doc-resources/action-ssc-debricked-scan.md new file mode 100644 index 0000000..f87f5c1 --- /dev/null +++ b/doc-resources/action-ssc-debricked-scan.md @@ -0,0 +1 @@ +# TODO \ No newline at end of file diff --git a/doc-resources/templates/ssc-debricked-scan/README.template.md b/doc-resources/templates/ssc-debricked-scan/README.template.md new file mode 100644 index 0000000..4583920 --- /dev/null +++ b/doc-resources/templates/ssc-debricked-scan/README.template.md @@ -0,0 +1,11 @@ +# fortify/github-action/ssc-debricked-scan@{{var:action-major-version}} + +{{include:p.marketing-intro.md}} + +{{include:action-ssc-debricked-scan.md}} + +{{include:h2.support.md}} + +--- + +*[This document was auto-generated; do not edit by hand](https://github.com/fortify/shared-doc-resources/blob/main/USAGE.md)* \ No newline at end of file diff --git a/ssc-debricked-scan/README.md b/ssc-debricked-scan/README.md new file mode 100644 index 0000000..53f7865 --- /dev/null +++ b/ssc-debricked-scan/README.md @@ -0,0 +1,37 @@ +# fortify/github-action/ssc-debricked-scan@v1 + + + + +[Fortify Application Security](https://www.microfocus.com/en-us/solutions/application-security) provides your team with solutions to empower [DevSecOps](https://www.microfocus.com/en-us/cyberres/use-cases/devsecops) practices, enable [cloud transformation](https://www.microfocus.com/en-us/cyberres/use-cases/cloud-transformation), and secure your [software supply chain](https://www.microfocus.com/en-us/cyberres/use-cases/securing-the-software-supply-chain). As the sole Code Security solution with over two decades of expertise and acknowledged as a market leader by all major analysts, Fortify delivers the most adaptable, precise, and scalable AppSec platform available, supporting the breadth of tech you use and integrated into your preferred toolchain. We firmly believe that your great code [demands great security](https://www.microfocus.com/cyberres/application-security/developer-security), and with Fortify, go beyond 'check the box' security to achieve that. + + + + + + + +# TODO + + + + + + + +## Support + +The only warranties for products and services of Open Text and its affiliates and licensors (“Open Text”) are as may be set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. Open Text shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. + +The software is provided "as is" and is not supported through the regular OpenText Support channels. Support requests may be submitted through the [GitHub Issues](https://github.com/fortify/github-action/issues) page for this repository. A (free) GitHub account is required to submit new issues or to comment on existing issues. + +Support requests created through the GitHub Issues page may include bug reports, enhancement requests and general usage questions. Please avoid creating duplicate issues by checking whether there is any existing issue, either open or closed, that already addresses your question, bug or enhancement request. If an issue already exists, please add a comment to provide additional details if applicable. + +Support requests on the GitHub Issues page are handled on a best-effort basis; there is no guaranteed response time, no guarantee that reported bugs will be fixed, and no guarantee that enhancement requests will be implemented. If you require dedicated support for this and other Fortify software, please consider purchasing OpenText Fortify Professional Services. OpenText Fortify Professional Services can assist with general usage questions, integration of the software into your processes, and implementing customizations, bug fixes, and feature requests (subject to feasibility analysis). Please contact your OpenText Sales representative or fill in the [Professional Services Contact Form](https://www.microfocus.com/en-us/cyberres/contact/professional-services) to obtain more information on pricing and the services that OpenText Fortify Professional Services can provide. + + + + +--- + +*[This document was auto-generated; do not edit by hand](https://github.com/fortify/shared-doc-resources/blob/main/USAGE.md)* diff --git a/ssc-debricked-scan/action.yml b/ssc-debricked-scan/action.yml new file mode 100644 index 0000000..d3f3997 --- /dev/null +++ b/ssc-debricked-scan/action.yml @@ -0,0 +1,26 @@ +name: 'Perform SAST scan' +description: 'Perform a SAST scan on ScanCentral SAST' +author: 'Fortify' +runs: + using: composite + steps: + - uses: fortify/github-action/setup@feat-1.3.0 + with: + export-path: false + fcli: action-default + debricked-cli: action-default + - uses: fortify/github-action/internal/ssc-login@feat-1.3.0 + - run: ${DEBRICKED_CLI_CMD} scan + shell: bash + - if: always() + run: ${FCLI_CMD} ssc artifact import-debricked --av "${SSC_APPVERSION}"" --repository "${{ github.repository }}"" --branch "${{ github.head_ref || github.ref_name }}" -t ${{ env.DEBRICKED_TOKEN }} --store debricked_scan + shell: bash + - if: env.DO_WAIT == 'true' || env.DO_EXPORT == 'true' + run: | + ${FCLI_CMD} ssc artifact wait-for ::debricked_scan:: + shell: bash + +branding: + icon: 'shield' + color: 'blue' +