Skip to content

Commit

Permalink
fix: quote the value of medtadata
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <[email protected]>
  • Loading branch information
Shengwen Yu committed May 11, 2024
1 parent 681873c commit 2d565f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/data/01-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function () {

try {
if (settings['AutoSbomGen'] === "true") {
harbor.createProject({ projectName: `${settings.ProjectPrefix}-${suffix}`, metadata: {"auto_sbom_generation": "true"} })
harbor.createProject({ projectName: `${settings.ProjectPrefix}-${suffix}`, metadata: `{"auto_sbom_generation": "true"}` })
} else {
harbor.createProject({ projectName: `${settings.ProjectPrefix}-${suffix}` })
}
Expand Down

0 comments on commit 2d565f5

Please sign in to comment.