Commit graph

3474 commits

Author SHA1 Message Date
Meredith Lancaster
de63deab20
Merge pull request #2 from phillmv/gh-attestation-cmd
Tweak gh attestation doc strings
2024-03-25 10:26:20 -06:00
Meredith Lancaster
6b4f3872a1
Merge branch 'trunk' into gh-attestation-cmd 2024-03-25 10:20:17 -06:00
Phill MV
0b14695ee1 Forgot verify's short str. 2024-03-25 11:53:16 -04:00
ihommani
1cac2280aa Fix typo in auth switch help example 2024-03-23 20:56:09 +00:00
Phill MV
96da5f74ca lets hide tuf-root-verify eh? 2024-03-22 16:33:49 -04:00
Phill MV
416d981f70 Tweaked docstrings for gh attestation verify 2024-03-22 15:40:15 -04:00
Phill MV
2e1d27a8ce Tweaked docstrings for gh attestation download 2024-03-22 15:39:36 -04:00
Meredith Lancaster
c16406b6e6 Merge branch 'gh-attestation-cmd' of github.com:malancas/cli into gh-attestation-cmd 2024-03-20 15:18:32 -06:00
Meredith Lancaster
49dfa3f6d5 use CLI cache dir to store tuf metadata
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-20 15:18:19 -06:00
Meredith Lancaster
3391fb105b
Merge branch 'trunk' into gh-attestation-cmd 2024-03-20 07:45:19 -06:00
yasunori
b54f7a3bde
Include draft ID in project item list JSON (#8754) 2024-03-20 12:58:51 +01:00
Meredith Lancaster
98d7bef299 use strings.Replace for all command tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-19 16:51:26 -06:00
Meredith Lancaster
79d3c9594d use strings.Split func
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-19 16:41:13 -06:00
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
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
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
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