Skip to content

Commit

Permalink
Fix SBOM generation (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 authored Nov 8, 2024
1 parent 953f4dd commit ca54963
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build-scripts/hack/generate-sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ def rock_coredns(manifest, extra_files):

with util.git_repo(COREDNS_ROCK_REPO, COREDNS_ROCK_TAG) as d:
rock_repo_commit = util.parse_output(["git", "rev-parse", "HEAD"], cwd=d)
rockcraft = (d / "rockcraft.yaml").read_text()
# TODO(ben): This should not be hard coded.
rockcraft = (d / "1.11.1/rockcraft.yaml").read_text()

extra_files["coredns/rockcraft.yaml"] = rockcraft
extra_files["coredns/1.11.1/rockcraft.yaml"] = rockcraft

rockcraft_yaml = yaml.safe_load(rockcraft)
repo_url = rockcraft_yaml["parts"]["coredns"]["source"]
Expand All @@ -211,7 +212,7 @@ def rock_coredns(manifest, extra_files):
"revision": rock_repo_commit,
},
"language": "go",
"details": ["coredns/rockcraft.yaml", "coredns/go.mod", "coredns/go.sum"],
"details": ["coredns/1.11.1/rockcraft.yaml", "coredns/go.mod", "coredns/go.sum"],
"source": {
"type": "git",
"repo": repo_url,
Expand Down

0 comments on commit ca54963

Please sign in to comment.