Commit graph

7444 commits

Author SHA1 Message Date
Meredith Lancaster
67ac04bd1c remove unneeded embedded file system
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 22:15:15 -06:00
Meredith Lancaster
1ba04c6925 normalize artifact path
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 21:38:43 -06:00
Meredith Lancaster
ead84a2acc close file in error handling branch
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 21:35:30 -06:00
Meredith Lancaster
79fa437969 cleanup method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 21:33:26 -06:00
Meredith Lancaster
8177c6c473 formatting
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:41:41 -06:00
Meredith Lancaster
cf8f0ea611 add initial tests for tufrootverify cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:41:13 -06:00
Meredith Lancaster
24412d2072 remove unneeded table printer method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 20:00:58 -06:00
Meredith Lancaster
ff1e8e46de move mock client to test file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:54:36 -06:00
Meredith Lancaster
338f9cf78c return JSON results in slice instead of table
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:45:02 -06:00
Meredith Lancaster
11eba5e25d use cli table printer
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:19:32 -06:00
Meredith Lancaster
99111a3357 add more sigstore verifier specific tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:11:42 -06:00
Meredith Lancaster
5787fef7b4 start adding sigstore verifier unit tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 19:01:16 -06:00
Meredith Lancaster
587b318d1f PrintTableToStdOut returns err when rendering fails
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 13:03:22 -06:00
Meredith Lancaster
2cf02a4ca9 return err when an unsupported hash alg is provided
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:53:16 -06:00
Meredith Lancaster
3c2ded10a0 unexport fields
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:27:16 -06:00
Meredith Lancaster
8e3c197755 look for err specific to file write
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 12:23:34 -06:00
Meredith Lancaster
7f477afa5d include test case with failing metadata store
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:52:10 -06:00
Meredith Lancaster
39a76fdd90 switch to using MetadataStore abstraction
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:41:32 -06:00
Meredith Lancaster
06801fb5b1 try out metadata abstraction instead
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 11:32:07 -06:00
Meredith Lancaster
01260efddb check for noattestationsfound err
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 10:48:46 -06:00
Meredith Lancaster
af7f6996b9 Merge branch 'trunk' into gh-attestation-cmd 2024-03-14 10:18:05 -06:00
Victor Martinez
c0658b7ab4
feat: support dry-run in gh pr create (#8376) 2024-03-14 16:28:53 +01:00
William Martin
96d9a0da24
Merge pull request #8811 from cli/dependabot/go_modules/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0
2024-03-14 10:58:12 +01:00
dependabot[bot]
358f3d95e9
build(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 22:44:00 +00:00
Meredith Lancaster
9becdc5a26 add tests for CLI commands
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-13 07:46:57 -06:00
Meredith Lancaster
be8ce2b23a fix inconsistent naming
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 20:03:31 -06:00
Meredith Lancaster
7565cc4437 update comments
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:20:00 -06:00
Meredith Lancaster
310a54f0bd add comment around keychain option
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:08:41 -06:00
Meredith Lancaster
4ae0470dcd unexport top level subcommand funcs
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 18:05:02 -06:00
Meredith Lancaster
9ad3b220a3 switch over to using RunE
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:52:17 -06:00
Meredith Lancaster
0018903264 support repo option in download sub cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:35:56 -06:00
Meredith Lancaster
658fab208d check correct cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:25:38 -06:00
Meredith Lancaster
3ee14bbcb8 use table driven tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 17:07:14 -06:00
Meredith Lancaster
63b5872f5f cleanup unused tempdir handling
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:49:05 -06:00
Meredith Lancaster
f78e104054 use testing TempDir method
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:47:23 -06:00
Meredith Lancaster
cd1c30a41e fix shellcheck issues
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:39:53 -06:00
Meredith Lancaster
4690166e2b format file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:34:04 -06:00
Meredith Lancaster
54db553124 rename files
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:29:02 -06:00
Meredith Lancaster
38adc439cc add tests for oci client
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:27:51 -06:00
Meredith Lancaster
f055517baa create interface for oci client
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 16:12:45 -06:00
Meredith Lancaster
be6b042039 use the iostreams.Test helper func
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 14:48:00 -06:00
Meredith Lancaster
b8c9f96da7 typo
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:55:42 -06:00
Meredith Lancaster
f1a2f8f0fc use StringEnumFlag handling
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:46:19 -06:00
Meredith Lancaster
ac79032936 simplify build step
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:29:21 -06:00
Meredith Lancaster
fbb27df846 use platform matrix for integration tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:25:02 -06:00
Meredith Lancaster
8f412af64d move integration tests to prexisting test workflow
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:20:24 -06:00
Meredith Lancaster
71480af106 rename file
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 12:09:40 -06:00
Meredith Lancaster
e0fc8c7032 switch assert to require
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 11:58:08 -06:00
Meredith Lancaster
cf54f05fc4 remove Go patch version
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-12 11:57:52 -06:00
Meredith Lancaster
b42fc7302c
Merge branch 'trunk' into gh-attestation-cmd 2024-03-12 11:18:41 -06:00