From 6b1201aa30e22074f95ab7c73a4411f9949597ea Mon Sep 17 00:00:00 2001 From: Waizguy Date: Sun, 6 Aug 2023 18:01:22 -0400 Subject: [PATCH] Create SynopsysDetect.yml --- .github/workflows/SynopsysDetect.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/SynopsysDetect.yml diff --git a/.github/workflows/SynopsysDetect.yml b/.github/workflows/SynopsysDetect.yml new file mode 100644 index 000000000..d93c54e6f --- /dev/null +++ b/.github/workflows/SynopsysDetect.yml @@ -0,0 +1,36 @@ + +name: Synopsys Security Testing + +on: + push: + branches: [ master, main ] + + pull_request: + branches: [ master, main ] + +jobs: + build: + runs-on: [self-hosted] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Synopsys Action + uses: synopsys-sig/synopsys-action@v1.2.0 + with: + blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }} + blackduck_url: ${{ secrets.BLACKDUCK_URL }} + + # Optional parameter. By default, pushes will initiate a full "intelligent" scan and pull requests + # will initiate a rapid scan. + blackduck_scan_full: false + # Required parameter if blackduck_automation_fixpr is enabled + # Make sure GITHUB_TOKEN have appropriate permissions + github_token: ${{ secrets.GITHUB_TOKEN }} + # Optional parameter. By default, create fix pull requests if vulnerabilities are reported + # Passing false will disable fix pull request creation + blackduck_automation_fixpr: true + # Optional parameter. The values could be. ALL|NONE|BLOCKER|CRITICAL|MAJOR|MINOR|OK|TRIVIAL|UNSPECIFIED + # Single parameter + blackduck_scan_failure_severities: "ALL" + # multiple parameters + # blackduck_scan_failure_severities: "BLOCKER,CRITICAL,TRIVIAL"