Skip to content

Commit

Permalink
remove spdx
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Jul 19, 2023
1 parent 365a51c commit 3c5b69a
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,37 +134,6 @@ jobs:
make release-plugins
make manifests IMAGE_TAG=${{ github.event.inputs.tag }}
- name: Generate SBOM (spdx)
id: spdx-builder
env:
# defines the spdx/spdx-sbom-generator version to use.
SPDX_GEN_VERSION: v0.0.13
# defines the sigs.k8s.io/bom version to use.
SIGS_BOM_VERSION: v0.2.1
# comma delimited list of project relative folders to inspect for package
# managers (gomod, yarn, npm).
PROJECT_FOLDERS: ".,./ui"
# full qualified name of the docker image to be inspected
DOCKER_IMAGE: quay.io/codefresh/argo-rollouts:${{ github.event.inputs.tag }}

run: |
yarn install --cwd ./ui
go install github.com/spdx/spdx-sbom-generator/cmd/generator@$SPDX_GEN_VERSION
go install sigs.k8s.io/bom/cmd/bom@$SIGS_BOM_VERSION
# Generate SPDX for project dependencies analyzing package managers
for folder in $(echo $PROJECT_FOLDERS | sed "s/,/ /g")
do
generator -p $folder -o /tmp
done
# Generate SPDX for binaries analyzing the docker image
if [[ ! -z $DOCKER_IMAGE ]]; then
bom generate -o /tmp/bom-docker-image.spdx -i $DOCKER_IMAGE
fi
cd /tmp && tar -zcf sbom.tar.gz *.spdx
- name: Draft release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 3c5b69a

Please sign in to comment.