Skip to content

CryptosoftInc/Aggregate-Sbom-Javascript

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Cryptosoft-SBOM-Javascript

Website

Introduction

This GitHub action will create a valid Software Bill-of-Materials (SBOM) containing an aggregate of all project dependencies and then will upload to OWASP Dependency-Track.

Inputs

  1. Dependency-Track url - required
  2. Dependency-Track api-key - required
  3. Project Name - required
  4. Project Version - required

Output

The default token output confirms that the SBOM has been successfully uploaded to Dependency-Track.

Usage

uses: CryptosoftInc/Aggregate-Sbom-Javascript@1.0.0

To use this action, follow these steps:

  1. Navigate to your GitHub project directory.
  2. Create a new file named .github/workflows/file-name.yaml.
  3. Copy the provided code snippet below and paste it into the newly created YAML file.

Use below snippet for Javascript Projects

name: Your-Workflow-Name
on: push
jobs:
  myJob:
    runs-on: ubuntu-latest
    steps:
      - name: Cryptosoft-SBOM-Dependency-Track
        id: Cryptosoft-SBOM-Dependency-Track
        uses: CryptosoftInc/Aggregate-Sbom-Javascript@1.0.0
        with:
          dt-url: <your dt url>
          # you can store api-key obtained in your github secrets. 
          api-key: ${{ secrets.apiKey }}
          project-name: <your project name>
          project-version: <your project version >

Contribution

Suggestions are welcome!