@@ -366,8 +366,17 @@ spec:
366
366
` .spec.verify` is an optional field to enable the verification of Git commit
367
367
signatures. The field offers two subfields :
368
368
369
- - ` .mode` , to specify what Git commit object should be verified. Only supports
370
- ` head` at present.
369
+ - ` .mode` , to specify what Git object(s) should be verified. Supported
370
+ values are :
371
+ - `HEAD` : Verifies the commit object pointed to by the HEAD of the repository
372
+ after performing a checkout via `.spec.ref`.
373
+ - `head` : Same as `HEAD`, supported for backwards compatibility purposes.
374
+ - `Tag` : Verifies the tag object pointed to by the specified/inferred tag
375
+ reference in `.spec.ref.tag`, `.spec.ref.semver` or `.spec.ref.name`.
376
+ - `TagAndHEAD` : Verifies the tag object pointed to by the specified/inferred tag
377
+ reference in `.spec.ref.tag`, `.spec.ref.semver` or `.spec.ref.name` and
378
+ the commit object pointed to by the tag.
379
+
371
380
- ` .secretRef.name` , to specify a reference to a Secret in the same namespace as
372
381
the GitRepository. Containing the (PGP) public keys of trusted Git authors.
373
382
@@ -384,7 +393,7 @@ spec:
384
393
ref:
385
394
branch: master
386
395
verify:
387
- mode: head
396
+ mode: HEAD
388
397
secretRef:
389
398
name: pgp-public-keys
390
399
` ` `
@@ -978,6 +987,15 @@ status:
978
987
...
979
988
` ` `
980
989
990
+ # ## Source Verification Mode
991
+
992
+ The source-controller reports the Git object(s) it verified in the Git
993
+ repository to create an artifact in the GitRepository's
994
+ ` .status.sourceVerificationMode` . This value is the same as the [verification
995
+ mode in spec](#verify). The verification status is applicable only to the
996
+ latest Git repository revision used to successfully build and store an
997
+ artifact.
998
+
981
999
# ## Observed Generation
982
1000
983
1001
The source-controller reports an [observed generation][typical-status-properties]
0 commit comments