From dc795a9d4b8986feb6ba778feb1b75273961691a Mon Sep 17 00:00:00 2001 From: Maxim Kondratenko Date: Thu, 15 Dec 2022 13:30:31 +0200 Subject: [PATCH] Adjust SBOM 2 --- .github/workflows/common.yml | 104 +++++++++++++++++------------------ 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index f04c1f08e6..131ff15c81 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -77,65 +77,65 @@ jobs: git status git diff --exit-code - - name: Run check-license - run: | - # run license checker on configured files - bin/license-eye -c .licenserc.yaml header check - - - name: Run go-sumtype - run: bin/go-sumtype ./... - - - name: Run required linters - uses: reviewdog/action-golangci-lint@v2 - with: - github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} - go_version: ${{ env.GO_VERSION }} - reporter: github-pr-review - fail_on_error: true - cache: false - golangci_lint_flags: "-c=.golangci-required.yml" - golangci_lint_version: v1.49.0 - - - name: Run go-consistent - env: - COMMAND: 'bin/go-consistent -pedantic -exclude "tests" ./...' - REDIRECT: "| bin/reviewdog -f=go-consistent -reporter=github-pr-review -fail-on-error=true" - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} - run: | - if out=$( ${{ env.COMMAND }} ); exit_code=$?; [ $exit_code -ne 0 ]; then - if [ $exit_code -gt 1 ] || ${{ github.event.pull_request == null }}; then - echo "$out" - exit $exit_code - else - echo "$out" ${{ env.REDIRECT }} - fi - else - echo "$out" - fi - - - name: Run optional linters - if: github.event_name == 'pull_request' - uses: reviewdog/action-golangci-lint@v2 - with: - github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} - go_version: ${{ env.GO_VERSION }} - reporter: github-pr-review - fail_on_error: false - cache: false - golangci_lint_flags: "-c=.golangci.yml" - golangci_lint_version: v1.49.0 - - - name: Test common API - run: make test-common +# - name: Run check-license +# run: | +# # run license checker on configured files +# bin/license-eye -c .licenserc.yaml header check + +# - name: Run go-sumtype +# run: bin/go-sumtype ./... + +# - name: Run required linters +# uses: reviewdog/action-golangci-lint@v2 +# with: +# github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} +# go_version: ${{ env.GO_VERSION }} +# reporter: github-pr-review +# fail_on_error: true +# cache: false +# golangci_lint_flags: "-c=.golangci-required.yml" +# golangci_lint_version: v1.49.0 + +# - name: Run go-consistent +# env: +# COMMAND: 'bin/go-consistent -pedantic -exclude "tests" ./...' +# REDIRECT: "| bin/reviewdog -f=go-consistent -reporter=github-pr-review -fail-on-error=true" +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} +# run: | +# if out=$( ${{ env.COMMAND }} ); exit_code=$?; [ $exit_code -ne 0 ]; then +# if [ $exit_code -gt 1 ] || ${{ github.event.pull_request == null }}; then +# echo "$out" +# exit $exit_code +# else +# echo "$out" ${{ env.REDIRECT }} +# fi +# else +# echo "$out" +# fi + +# - name: Run optional linters +# if: github.event_name == 'pull_request' +# uses: reviewdog/action-golangci-lint@v2 +# with: +# github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} +# go_version: ${{ env.GO_VERSION }} +# reporter: github-pr-review +# fail_on_error: false +# cache: false +# golangci_lint_flags: "-c=.golangci.yml" +# golangci_lint_version: v1.49.0 + +# - name: Test common API +# run: make test-common - name: create SBOM assets if: startsWith(github.ref, 'refs/tags/') uses: anchore/sbom-action@v0 with: - path: ./build/... + path: build/ # artifact-name: all.spdx - - name: publish vmproxy SBOM + - name: publish SBOM assets if: startsWith(github.ref, 'refs/tags/') uses: anchore/sbom-action/publish-sbom@v0 with: