Skip to content

Commit 5567b29

Browse files
authored
Merge pull request #427 from jetstack/auto-yes-cosign
2 parents 38ec078 + 2c06964 commit 5567b29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ export COSIGN_EXPERIMENTAL=1
108108

109109
.PHONY: sign-docker-image
110110
sign-docker-image:
111-
@cosign sign $(DOCKER_IMAGE):$(VERSION)
111+
@cosign sign -y $(DOCKER_IMAGE):$(VERSION)
112112

113113
.PHONY: sbom-docker-image
114114
sbom-docker-image:
115115
@syft $(DOCKER_IMAGE):$(VERSION) -o cyclonedx > bom.xml
116-
@cosign attach sbom --sbom bom.xml --type cyclonedx $(DOCKER_IMAGE):$(VERSION)
117-
@cosign sign --attachment sbom $(DOCKER_IMAGE):$(VERSION)
116+
@cosign attach sbom -y --sbom bom.xml --type cyclonedx $(DOCKER_IMAGE):$(VERSION)
117+
@cosign sign -y --attachment sbom $(DOCKER_IMAGE):$(VERSION)
118118

119119
.PHONY: attest-docker-image
120120
attest-docker-image:
121-
@cosign attest --type slsaprovenance --predicate predicate.json $(DOCKER_IMAGE):$(VERSION)
121+
@cosign attest -y --type slsaprovenance --predicate predicate.json $(DOCKER_IMAGE):$(VERSION)
122122

123123
# A pre-commit hook is configured on this repository and can be installed using https://pre-commit.com/#3-install-the-git-hook-scripts
124124
# This target can be used instead if the pre-commit hook is not desired

0 commit comments

Comments
 (0)