Commit graph

7430 commits

Author SHA1 Message Date
Meredith Lancaster
023b2af7d0 Merge branch 'trunk' into gh-attestation-cmd 2024-03-19 16:20:34 -06:00
Meredith Lancaster
5172edd2b2 escape backwards slash for windows files with replace
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-19 16:00:40 -06:00
William Martin
a14ecfda62
Merge pull request #8844 from cli/dependabot/go_modules/github.com/cpuguy83/go-md2man/v2-2.0.4
build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.3 to 2.0.4
2024-03-19 21:12:18 +01:00
dependabot[bot]
911d966880
build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.3 to 2.0.4
Bumps [github.com/cpuguy83/go-md2man/v2](https://github.com/cpuguy83/go-md2man) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/cpuguy83/go-md2man/releases)
- [Commits](https://github.com/cpuguy83/go-md2man/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: github.com/cpuguy83/go-md2man/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 14:13:27 +00:00
William Martin
83f0b5b810
Merge pull request #8843 from cli/wm/doc-run-view-and-watch
Document run watch and view not supporting fine grained PATs
2024-03-19 15:03:04 +01:00
William Martin
90fc403813 Document run watch and view not supporting fine grained PATs 2024-03-19 14:52:43 +01:00
Meredith Lancaster
2a00a02a2e dont clean
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 12:34:55 -06:00
Meredith Lancaster
1e51ec7f1a
Merge branch 'trunk' into gh-attestation-cmd 2024-03-18 12:09:31 -06:00
Meredith Lancaster
807eefd046 use test fixtures correctly by normalizing path
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 12:09:19 -06:00
Meredith Lancaster
02a1274eaa cleanup error wrapping
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 11:57:44 -06:00
Meredith Lancaster
12c7de2559 add tests for json output
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-18 11:37:29 -06:00
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
William Martin
b85083c98a
Merge pull request #8839 from cli/wm/auth-switch-more-docs
Document auth switch behaviour for two or more accounts
2024-03-18 17:49:49 +01: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
William Martin
0f5d2aed0a Document auth switch behaviour for two or more accounts 2024-03-18 17:24:38 +01:00
William Martin
96f1074c63
Merge pull request #8838 from jsoref/gh-docs-multiple-accounts
Gh docs multiple accounts
2024-03-18 17:22:07 +01: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
Josh Soref
304ce82fa7
grammar: avoid e.g.+etc. together
https://meryl.net/ie-etc-and-eg/
2024-03-18 11:21:25 -04: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