Skip to content

Commit b21ca47

Browse files
authored
Update generate_sbom.yaml
1 parent c9163cd commit b21ca47

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

.github/workflows/generate_sbom.yaml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
name: generate_sbom
2-
run-name: ${{ github.event.pull_request.head.sha }}
3-
on:
4-
workflow_dispatch:
5-
pull_request:
6-
types:
7-
- opened
8-
- synchronize
9-
- closed
10-
11-
env:
12-
SBOM_FILENAME: ${{ github.event.repository.name }}-${{ github.event.pull_request.head.sha }}.json
1+
name: Output markdown
2+
on: pull_request
133

144
jobs:
15-
generate_sbom:
16-
name: Generate sBOM
5+
output_markdown:
6+
name: Output markdown
177
runs-on: ubuntu-latest
188
steps:
19-
- name: Setup cdxgen
20-
shell: bash
21-
run: npm install -g @cyclonedx/cdxgen@8.2.4
22-
23-
- name: make file
9+
- name: create markdown
2410
shell: bash
25-
run: echo {msg:"Hello World"}>>hello.json
11+
run: |
12+
echo "* :rotating_light: - Major version upgrade" >> output.md
2613
27-
- uses: actions/upload-artifact@v3
14+
- uses: actions/upload-artifact@v4
2815
with:
29-
name: cyclonedx-sbom
30-
path: hello.json
16+
name: output.md
17+
path: output.md
3118

32-
19+

0 commit comments

Comments
 (0)