Commit graph

50 commits

Author SHA1 Message Date
Andy Feller
6a96de14bf Fix HSM Windows signing 2023-12-14 11:02:28 -05:00
Andy Feller
3790262123 Fix issue sourcing signtool for Windows signing
Workflow is currently breaking because there are multiple versions of signtool
installed on runners.  We face a challenge where we either hardcode this to a
specific version on the runner or always choose the latest version; this change
does the latter.
2023-12-14 09:50:29 -05:00
Andy Feller
d3d4a681f2 Add missing PowerShell file from previous commit 2023-12-13 10:21:02 -05:00
Andy Feller
a2ec7ab43f Fix release script to invoke HSM goreleaser config 2023-12-12 10:48:38 -05:00
Andy Feller
35f99ee426 Final fixes 2023-12-12 10:09:47 -05:00
Andy Feller
1fff21a63e Fixes based on actual secret names and signtool insights 2023-12-12 09:48:16 -05:00
Andy Feller
4f8d2f71e4 Moving options to metadata 2023-12-08 17:33:52 -05:00
Andy Feller
5e8e645a7f Update HSM test using Desktop approach
This update leverages GitHub Desktop approach of downloading Azure Code Signing DLL and wiring it up as part of the existing signing process used by Windows builds.
2023-12-08 17:27:22 -05:00
Andy Feller
dea2cd5fe1 Create HSM testing workflow
This commit is an initial prototype based on the deployment workflow, using the
Azure Code Signing service to sign Windows .exe and .msi files.

These changes have been isolated as much as possible to not affect existing
deployment workflows while also working around design issues with how GitHub
CLI workflow works with GoReleaser and now with ACS support.  The biggest smell
was over whether to break from using GoReleaser or have GoReleaser control as
much about the release process as it has been versus opening / signing /
archiving the resulting GoReleaser artifacts; needless to say, the latter was
chosen for expedience as well as leaning into officially supported solutions.
2023-12-05 15:24:50 -05:00
Mislav Marohnić
aa2adab7fa
Fix label assets 2023-05-10 12:38:06 +02:00
Mislav Marohnić
8b987e2deb
New deployment workflow
Add ability to trigger deployments without having to push a git tag
2023-05-09 20:23:54 +02:00
Sam Coe
28c6c8a546
Remove pubkey as it is no longer necessary (#6208) 2022-09-06 14:31:24 +00:00
Sam Coe
9599952d5c
Update distributions gpg key (#6207) 2022-09-06 18:15:02 +04:00
Sam Coe
2b0b4b8f00
Update rpm script (#6206) 2022-09-06 17:57:58 +04:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
Mislav Marohnić
3e0db567e8
Rotate our Windows signing certificates (#5196)
- The certificate pfx file is now read from WINDOWS_CERT_PFX
- The password to decode the pfx is in WINDOWS_CERT_PASSWORD
- Quit reading from desktop-secrets repo
- Switch osslsigncode to take in pfx instead of individual certs
- 🔥 obsolete setup scripts
2022-02-15 17:23:39 +01:00
Nate Smith
8c862bbb3a
Merge pull request #2160 from mbpreble/sign-windows-executables
Sign Windows .exes in a post-build hook
2022-01-18 09:13:33 -06:00
nate smith
2ade4e5608 add newlines to end of file 2022-01-14 16:46:56 -06:00
nate smith
e6b4fe632b skip signing if env vars not in place 2022-01-14 16:32:56 -06:00
nate smith
a23bdcd84d clean up leftover debugging, add -e 2022-01-14 16:24:04 -06:00
Mislav Marohnić
9f46def1a8 Add nolint-insert script to auto-comment lint violations
Step 1: mark a function as deprecated
Step 2: run `script/nolint-insert`
Step 3: all callers of that function now have a `//nolint` directive
2022-01-14 19:54:09 +01:00
nate smith
f30b7dbf72 Work around parallel race condition problems 2022-01-13 13:38:09 -06:00
Matthew Preble
45adc4ad76 Migrate to osslsigncode. 2022-01-13 13:37:57 -06:00
nate smith
e56c78a364 Sign Windows .exes in a post-build hook 2022-01-13 13:37:57 -06:00
Mislav Marohnić
1464a8a0f3 Generate release notes using the new API
https://docs.github.com/en/rest/reference/repos#generate-release-notes-content-for-a-release
2021-10-14 20:22:38 +02:00
Mislav Marohnić
11fbb60ae7 Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
Mislav Marohnić
4e219a9c8f Improve changelog script so it includes squashed merges 2021-08-24 14:29:29 +02:00
Mislav Marohnić
bd01566251 Allow script\build as shorthand for go run script\build.go on Windows 2021-06-15 17:33:33 +02:00
Mislav Marohnić
32f9a462a8 Speed up build script by avoiding recursing into 3rd-party directories 2021-06-15 17:32:43 +02:00
Mislav Marohnić
cda406f495 Better error handling in build script on Windows
`script/build.go` could encounter an "Access is denied" error when the
project contains a symlink that could not be followed. This ignores such
errors with a warning and allows the build to resume.
2021-06-15 17:31:01 +02:00
vilmibm
2d704ba591 bonus: support sid 2021-05-19 16:51:58 -05:00
Mislav Marohnić
068ad31c14
Add support for new Ubuntu, Kali linux (#3645)
Co-authored-by: vilmibm <vilmibm@neongrid.space>
2021-05-18 08:11:47 +02:00
Mislav Marohnić
d43720620e Tweak build scripts to enable cross-compiling
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.

However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.

This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:

    go run script/build.go GOOS=linux

With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
2021-04-09 15:48:12 +02:00
xvqxy
9920ea97f6
Display output of build commands.
This fixes #2920.

Print out output of executed command to stdout/stderr.
2021-02-06 09:49:53 +01:00
vilmibm
7479b3834d use volume to avoid having to rebuild 2021-01-27 10:58:54 -08:00
vilmibm
33c119aa98 remove stray debug line 2021-01-27 10:41:03 -08:00
vilmibm
a603526e01 clean up temporary directory 2021-01-26 16:44:37 -08:00
vilmibm
71da09e560 add docker-based script for running createrepo 2021-01-26 16:43:53 -08:00
Mislav Marohnić
39431a101d Port select portions of Makefile to script/build.go
This is to enable build tasks on Windows.
2021-01-08 22:35:57 +01:00
vilmibm
8b197ac0bc package for armhf 2020-12-14 14:33:54 -08:00
Mislav Marohnić
2376c81460 Fix scoop-gen 2020-10-02 17:48:34 +02:00
Mislav Marohnić
0a17259e3c Bump scoop bucket manually on release
Goreleaser can no longer do this for us since we're always creating a
draft release initially.
2020-10-01 19:09:14 +02:00
vilmibm
74665b213a support more ubuntus 2020-09-17 14:18:06 -05:00
vilmibm
f46ebf9cea support more debians 2020-09-16 12:47:16 -05:00
vilmibm
9db9370a3e fix descriptions 2020-09-09 09:53:34 -05:00
vilmibm
338f37d6aa support extant ubuntu LTSs 2020-09-08 16:11:15 -05:00
vilmibm
894be03923 linux repo creation 2020-09-03 13:47:48 -05:00
Mislav Marohnić
2053809436 Merge pull request #201 from github/cleanup-scripts
Cleanup release scripts
2020-01-08 17:22:46 +01:00
Mislav Marohnić
7edde9306a Move Windows build scripts under script/ 2020-01-07 15:51:57 +01:00
Mislav Marohnić
2271f4cdb6 Generate changelog on release
The changelog is generated using the git log of pull request merges
since the last tagged release, and is in the following format:

    * {PR title} #{PR number}
2020-01-07 13:55:56 +01:00