Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add CDXGen workflow template for SBOM generation and vulnerability scanning #3

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
20 changes: 20 additions & 0 deletions workflow-templates/cdxgen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "CDXGen",
"description": "Generate SBOM file by CDXGen and vulnerability Scan report by CyclonDX.",
"categories": [
"Go",
"Maven",
"Pthon",
"Docker",
"Automation",
"utilities"
],
"filePatterns": [
"*/**/go.mod",
"*/**/pom.xml",
"*/**/requirements.txt",
"*/**/Dockerfile",
"*/**/pyproject.toml"
],
"labels": [ "preview"]
}
20 changes: 20 additions & 0 deletions workflow-templates/cdxgen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

# The workflow will generate the SBOM file for the repository
# and vulerability scan report for the SBOM file using CycloneDX
# The workflow will run on push to main branch and manually triggered workflows
# The results will be stored in the action artifacts

name: 'CDXGen'
on:
workflow_dispatch:
push:
branches:
- 'main'

jobs:
cdxgen:
runs-on: ubuntu-latest
steps:
- name: "cdxgen"
uses: netcracker/qubership-workflow-hub/actions/cdxgen@main