Skip to content

Commit

Permalink
Update generate_sbom.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalab authored Jul 15, 2024
1 parent c9163cd commit b21ca47
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/generate_sbom.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
name: generate_sbom
run-name: ${{ github.event.pull_request.head.sha }}
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- closed

env:
SBOM_FILENAME: ${{ github.event.repository.name }}-${{ github.event.pull_request.head.sha }}.json
name: Output markdown
on: pull_request

jobs:
generate_sbom:
name: Generate sBOM
output_markdown:
name: Output markdown
runs-on: ubuntu-latest
steps:
- name: Setup cdxgen
shell: bash
run: npm install -g @cyclonedx/[email protected]

- name: make file
- name: create markdown
shell: bash
run: echo {msg:"Hello World"}>>hello.json
run: |
echo "* :rotating_light: - Major version upgrade" >> output.md
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cyclonedx-sbom
path: hello.json
name: output.md
path: output.md



0 comments on commit b21ca47

Please sign in to comment.