feat: add reusable SBOM → Dependency-Track workflow (Trivy CycloneDX)#132
Open
BryanFRD wants to merge 1 commit into
Open
feat: add reusable SBOM → Dependency-Track workflow (Trivy CycloneDX)#132BryanFRD wants to merge 1 commit into
BryanFRD wants to merge 1 commit into
Conversation
| runs-on: ${{ inputs.runner != '' && inputs.runner || (github.event.repository.private && 'ferrlabs-k8s' || 'ubuntu-latest') }} | ||
| if: ${{ !github.event.repository.private || inputs.run-on-private }} | ||
| steps: | ||
| - uses: actions/checkout@v6 |
| - name: Install Trivy | ||
| if: steps.guard.outputs.run == 'true' | ||
| run: | | ||
| VERSION="${{ inputs.trivy-version }}" |
| trivy fs \ | ||
| --format cyclonedx \ | ||
| --output "$RUNNER_TEMP/sbom.cdx.json" \ | ||
| ${{ inputs.trivy-args }} \ |
| runs-on: ${{ inputs.runner != '' && inputs.runner || (github.event.repository.private && 'ferrlabs-k8s' || 'ubuntu-latest') }} | ||
| if: ${{ !github.event.repository.private || inputs.run-on-private }} | ||
| steps: | ||
| - uses: actions/checkout@v6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
But
Alimenter Dependency-Track : générer un SBOM CycloneDX en CI et l'uploader dans DT, qui fait ensuite la corrélation CVE des dépendances.
Contenu
reusable-sbom-track.yml: jobSBOM → Dependency-Trackfs --format cyclonedx= un seul générateur universel (Rust/Node/Java/Python/Go)POST /api/v1/bomvershttps://dtrack.ferrlabs.comavecautoCreate=true→ projet auto-créé<repo>/ version<branche|tag>DTRACK_API_KEYabsent (comme snyk)workflow-templates/sbom-track.yml(+.properties.json) : template d'adoption, opt-in par repo.Validé
POST /api/v1/bommultipart (autoCreate/projectName/projectVersion/bom) → 401 avec clé bidon (endpoint OK, auth seule manquante).Pré-requis (bloquant pour l'exécution réelle)
DTRACK_API_KEY: clé API DT d'une Team ayantBOM_UPLOAD+PROJECT_CREATION_UPLOAD+VIEW_PORTFOLIO. Tant qu'il est absent, le job soft-pass.Activation
Opt-in : chaque repo ajoute l'appel au reusable (ou le template). Suggestion : le brancher sur
push:main(et sur les tags pour versionner les releases dans DT).