From cca262092c71ecc8672cdea74acb2f8649b6a43d Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Mon, 30 Oct 2023 11:09:36 -0700 Subject: [PATCH] ci: remove sbom step Because there is no one to maintain the system. Signed-off-by: Alexis Asseman --- .github/workflows/tests.yml | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 204a6502..7ba06514 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -115,42 +115,3 @@ jobs: ${{ steps.report.outputs.body }} (Empty means OK! 👍) - - sbom: - name: Syft SBOM Generator - runs-on: ubuntu-20.04 - env: - REPO_NAME: ${{ github.event.repository.name }} - REPORT_FOLDER: ${{ github.event.repository.name }}-sbom-report - steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-sbom - - run: | - curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b . - mkdir "${{ env.REPORT_FOLDER }}" - ./syft . --scope all-layers -o cyclonedx-xml=${{ env.REPORT_FOLDER }}/sbom-report.$(date "+%Y.%m.%d-%H.%M").xml - ./syft . --scope all-layers -o cyclonedx-json=${{ env.REPORT_FOLDER }}/sbom-report.$(date "+%Y.%m.%d-%H.%M").json - cp ${{ env.REPORT_FOLDER }}/*.xml sbom-report.xml - curl -X 'POST' 'http://34.149.248.118/api/v1/bom' \ - -H 'Content-Type: multipart/form-data' \ - -H 'X-API-Key: ${{ secrets.DEPENDENCYTRACK_APIKEY }}' \ - -F 'autoCreate=true' \ - -F 'projectVersion=1.0' \ - -F "projectName=${{ env.REPO_NAME }}" \ - -F 'bom=@sbom-report.xml' - - uses: 'google-github-actions/auth@v1' - with: - credentials_json: '${{ secrets.GHA_SA_KEY }}' - - uses: 'google-github-actions/upload-cloud-storage@v1' - with: - process_gcloudignore: false - path: '${{ env.REPORT_FOLDER }}/' - destination: 'security-sbom'