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
William Martin
ab24653770
Merge pull request #8833 from cli/wm/bump-go-keyring
...
Bump go-keyring to fix race condition
2024-03-18 15:50:33 +01:00
William Martin
2eeac4175f
Merge pull request #8834 from malor/fix-doc
...
Fix the description of `gh release upload`
2024-03-18 12:41:39 +01: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
William Martin
5bd32fc066
Bump go-keyring to fix race condition
2024-03-18 12:17:12 +01: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
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