From a385c59ff31c0262b5adeed89e36620a11df1340 Mon Sep 17 00:00:00 2001 From: Lucian Rosu Date: Fri, 14 Jul 2023 15:09:36 +0300 Subject: [PATCH] fix: inline go generator --- .../actions/sbom-generator-cyclonedx-golang/action.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/actions/sbom-generator-cyclonedx-golang/action.yaml b/.github/actions/sbom-generator-cyclonedx-golang/action.yaml index 1c5194c..075d616 100644 --- a/.github/actions/sbom-generator-cyclonedx-golang/action.yaml +++ b/.github/actions/sbom-generator-cyclonedx-golang/action.yaml @@ -7,15 +7,10 @@ inputs: runs: using: 'composite' steps: - - name: Install generator - working-directory: ./fixtures/golang - shell: bash - run: go get github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest - - name: Generate CycloneDX document working-directory: ./fixtures/golang shell: bash - run: cyclonedx-gomod mod -json=true -output sbom.cdx.json ./ + run: go run github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest mod -json=true -output sbom.cdx.json ./ - name: Upload generated SBOM document as artifact uses: actions/upload-artifact@v3