Meredith Lancaster
b5ffcf116d
Merge branch 'gh-attestation-cmd' of github.com:malancas/cli into gh-attestation-cmd
2024-03-18 10:51:58 -06:00
Meredith Lancaster
4f2f71950e
use normalized path for cli test arg
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 10:51:46 -06:00
Meredith Lancaster
6abd1fe7ae
Merge branch 'trunk' into gh-attestation-cmd
2024-03-18 10:36:17 -06:00
Meredith Lancaster
09b11dbb11
use format flag to handle json output
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 10:35:10 -06:00
Meredith Lancaster
172e4f6d6d
use format flag to handle json output in verify cmd
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 10:27:32 -06:00
Josh Soref
6ff355049c
Improve discovery of gh auth status
2024-03-18 12:09:27 -04:00
Meredith Lancaster
53df7cd8f2
add comment about http client
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 09:34:48 -06:00
Meredith Lancaster
b37bf1fc75
Merge branch 'trunk' into gh-attestation-cmd
2024-03-18 09:27:03 -06:00
Meredith Lancaster
cbcd34e34e
set api server based on host
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 09:23:01 -06:00
Meredith Lancaster
5cc2f6af1a
clean up nil client checks
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 08:57:54 -06:00
Roman Podoliaka
0d84970bbb
Fix the description of gh release upload
...
The formatting verb is used incorrectly and produces a misleading
help text for this command:
```
To define a display label for an asset, append text starting with %#% after the file name.
```
instead of the expected:
```
To define a display label for an asset, append text starting with `#` after the file name.
```
2024-03-18 11:19:20 +00:00
Meredith Lancaster
274af8b436
normalize all relative paths
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-15 13:34:11 -06:00
Meredith Lancaster
08f0a5688b
remove unneeded slice
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-15 09:37:30 -06:00
Meredith Lancaster
b5f6bd5cfa
GitHubTUFOptions no longer needs to return error
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-15 06:45:36 -06:00
Meredith Lancaster
2ef8eb6a1f
add more tufrootveriify tests
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-15 06:43:12 -06:00
Meredith Lancaster
af75fe875c
remove quiet and verbose flags
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 22:42:21 -06:00
Meredith Lancaster
007d368681
use GH_DEBUG value for io handling
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 22:38:33 -06:00
Meredith Lancaster
7067130603
include image name reference err
...
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 22:20:54 -06:00
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
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
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