Skip to content

Commit

Permalink
add params and image
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Oct 14, 2023
1 parent 3510071 commit bb81596
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
20 changes: 18 additions & 2 deletions components/producers/cdxgen/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ spec:
- name: producer-cdxgen-fetch-license
type: string
default: "false"
- name: producer-cdxgen-github-token
type: string
default: ""
- name: cdxgen-astgen-ignore-file-pattern
type: string
default: ""
- name: cdxgen-astgen-ignore-dirs
type: string
default: ""
volumes:
- name: scratch
emptyDir: {}
Expand All @@ -24,10 +33,17 @@ spec:
image: ghcr.io/cyclonedx/cdxgen:v9.8.10
env:
- name: FETCH_LICENSE
value: $(params.cdxgen-fetch-license)
value: $(params.producer-cdxgen-fetch-license)
- name: GITHUB_TOKEN
value: $(params.producer-cdxgen-github-token)
- name: ASTGEN_IGNORE_FILE_PATTERN
value: $(params.producer-cdxgen-astgen-ignore-file-pattern)
- name: ASTGEN_IGNORE_DIRS
value: $(params.producer-cdxgen-astgen-ignore-dirs)
command: ["node", "/opt/cdxgen/bin/cdxgen.js"]
args:
- "$(params.producer-docker-trivy-flags[*])"
- "$(params.producer-cdxgen-flags[*])"
- --spec-version 1.4
- -r
- -p
- -o
Expand Down
8 changes: 8 additions & 0 deletions third_party/docker/CycloneDX/cdxgen/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
subinclude("//build/defs:buildkit")

buildkit_image_mirror(
name = "cdxgen",
digest = "sha256:736787f469d6a212dfc6e33f7e2da05513fec64607080e02e510348fff5fbafb",
repo = "ghcr.io/cyclonedx/cdxgen",
tags = ["v9.8.10"],
)

0 comments on commit bb81596

Please sign in to comment.