Skip to content

Commit

Permalink
Create microsoft-sbom.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditi8007 authored Feb 21, 2024
1 parent ab00025 commit 2bc6ee5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/microsoft-sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Microsft SBOM"
on:
push:
branches: [ "1.15.8_release" ]
pull_request:
branches: [ "1.15.8_release" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Installing SBOM
run: |
curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/latest/download/sbom-tool-linux-x64
chmod +x $RUNNER_TEMP/sbom-tool
- name: Generate SBOM
run: |
mkdir SBOMOUTPUT
$RUNNER_TEMP/sbom-tool generate -b SBOMOUTPUT/ -bc . -pn ${{ github.repository }} -pv 1.15.8 -ps wipro -nsb https://github.com/apache/kafka
- name: Upload SBOM artifact
uses: actions/upload-artifact@v3
with:
name: sbom
path: SBOMOUTPUT/_manifest/spdx_2.2/manifest.spdx.json

0 comments on commit 2bc6ee5

Please sign in to comment.