Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated PR comments
  • Loading branch information
aasim committed Jul 5, 2022
commit 41685bc890446909ffdde0cd6d7771dd1a20aa6b
21 changes: 8 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,18 @@ jobs:
- name: Build CLI self-contained
run: dotnet publish --configuration Release --output ./bin --self-contained --runtime ${{ matrix.rid }} -p:PublishSingleFile=true -p:DebugType=None -p:PublishTrimmed=true ./src/Microsoft.Sbom.Tool

- name: Rename binary to readable name
run: mv ./bin/Microsoft.Sbom.Tool${{ matrix.rid == 'win-x64' && '.exe' || '' }} ./bin/sbom-tool-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}

- name: Generate SBOM for sbom-tool
run: dotnet run --project src/Microsoft.Sbom.Tool generate -- -b ./bin -bc ./src/ -pn sbom-tool -pv ${{ github.event.release.tag_name }} -nsb https://sbom.microsoft

- name: Publish SBOM
uses: shogo82148/actions-upload-release-asset@v1.6.2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/_manifest/spdx/manifest.spdx.json
asset_name: manifest.spdx.json

- name: Publish CLI tool
uses: shogo82148/actions-upload-release-asset@v1.6.2
- name: Upload binaries and SBOM to release
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/*
asset_name: sbom-tool-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}

asset_paths: '["./bin/sbom-tool-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}", "./bin/_manifest/spdx_2.2/manifest.spdx.json"]'

- name: Build NuGet packages
run: dotnet pack --no-restore -p:DebugType=None --include-symbols --no-build --configuration Release --output ./out
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Salus - SBOM Tool

[![Build](https://github.com/microsoft/sbom-tool/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/microsoft/sbom-tool/actions/workflows/build.yml)
![GitHub release (latest by date)](https://img.shields.io/github/downloads/microsoft/sbom-tool/latest/total)
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/microsoft/sbom-tool?include_prereleases)

## Introduction

The SBOM tool is a highly scalable and enterprise ready tool to create SPDX 2.2 compatible SBOMs for any variety of artifacts.

## Table of Contents

* [Installation](#installation)
* [Run the tool]()
* [Building and running Sbom tool from source](docs/build-and-run.md)
* [Run the tool](#run-the-tool-to-generate-an-sbom)
* [Building the tool from source](docs/build-and-run.md)
* [Telemetry](#Telemetry)
* [Contributing](#Contributing)
* [Security](#Security)
Expand Down