cli/pkg/cmd/attestation/verify
Meredith Lancaster cd5562f5ac
Add signer-repo and signer-workflow flags to gh attestation verify (#9137)
* add signer-repo and signer-workflow flags

Signed-off-by: Meredith Lancaster <malancas@github.com>

* add check for SignerRepo option

Signed-off-by: Meredith Lancaster <malancas@github.com>

* add helper function and comment for clarity

Signed-off-by: Meredith Lancaster <malancas@github.com>

* update flag comment

Signed-off-by: Meredith Lancaster <malancas@github.com>

* reference correct field

Signed-off-by: Meredith Lancaster <malancas@github.com>

* move function to more relevant file

Signed-off-by: Meredith Lancaster <malancas@github.com>

* Update pkg/cmd/attestation/verify/verify.go

Co-authored-by: Zach Steindler <steiza@github.com>

* Update pkg/cmd/attestation/verify/verify.go

Co-authored-by: Zach Steindler <steiza@github.com>

* make all reusable workflow flags mutually exclusive

Signed-off-by: Meredith Lancaster <malancas@github.com>

* accept signer workflow without host

Signed-off-by: Meredith Lancaster <malancas@github.com>

* support client optionally providing host with signer workflow flag

Signed-off-by: Meredith Lancaster <malancas@github.com>

* comment

Signed-off-by: Meredith Lancaster <malancas@github.com>

* add tests for parsing signer workflow

Signed-off-by: Meredith Lancaster <malancas@github.com>

---------

Signed-off-by: Meredith Lancaster <malancas@github.com>
Co-authored-by: Zach Steindler <steiza@github.com>
2024-05-30 07:40:55 -06:00
..
options.go Add signer-repo and signer-workflow flags to gh attestation verify (#9137) 2024-05-30 07:40:55 -06:00
options_test.go gh-attestation cmd integration (#8698) 2024-04-01 11:13:47 -06:00
policy.go Add signer-repo and signer-workflow flags to gh attestation verify (#9137) 2024-05-30 07:40:55 -06:00
policy_test.go Add signer-repo and signer-workflow flags to gh attestation verify (#9137) 2024-05-30 07:40:55 -06:00
verify.go Add signer-repo and signer-workflow flags to gh attestation verify (#9137) 2024-05-30 07:40:55 -06:00
verify_integration_test.go Add signer-repo and signer-workflow flags to gh attestation verify (#9137) 2024-05-30 07:40:55 -06:00
verify_test.go Test gh at verify -b does not require auth 2024-04-29 12:02:41 -04:00