From 5e6164d62299d7ce0393f0907bd04504fe25064e Mon Sep 17 00:00:00 2001 From: Christophe Jauffret Date: Fri, 6 May 2022 13:40:51 +0200 Subject: [PATCH] Create synopsys.yaml --- .github/workflows/synopsys.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/synopsys.yaml diff --git a/.github/workflows/synopsys.yaml b/.github/workflows/synopsys.yaml new file mode 100644 index 0000000..3f9958d --- /dev/null +++ b/.github/workflows/synopsys.yaml @@ -0,0 +1,31 @@ +name: Black Duck Policy Check +on: + pull_request: + branches: + - main + schedule: + - cron: '0 0 * * *' + push: + +jobs: + security: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '^1.17' + + - name: Build Project + run: make build + + - name: Run Synopsys Detect + uses: synopsys-sig/detect-action@v0.3.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + detect-version: 7.9.0 + blackduck-url: ${{ secrets.BLACKDUCK_URL }} + blackduck-api-token: ${{ secrets.BLACKDUCK_API_TOKEN }}