Skip to content

Commit 6d67f72

Browse files
authored
risk: Upgraded golang.org/x/crypto to v0.45.0 to address security vulnerabilities (#19)
- **risk:** Added `signature-verify` make target to verify latest release's digital signatures for the current GOOS and GOARCH combination. - **debt:** Upgraded dependencies to their latest stable versions. - **defect:** Fixed `README.md` instructions for verifying module checksums. - **risk:** Upgraded `golang.org/x/crypto` to `v0.45.0` to address vulnerabilities.
1 parent 57ccb2f commit 6d67f72

31 files changed

Lines changed: 362 additions & 42 deletions

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
# Ref: https://github.com/golangci/golangci-lint-action
6363
- name: Lint
64-
uses: golangci/golangci-lint-action@v8
64+
uses: golangci/golangci-lint-action@v9
6565
with:
6666
args: --config=.golangci.yaml --verbose
6767

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ out/
2929
.vscode/
3030

3131
dist/
32+
tmp/

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ Date format: `YYYY-MM-DD`
1717
### Fixed
1818
### Security
1919

20+
---
21+
22+
## [1.52.0] - 2025-11-20
23+
24+
### Added
25+
- **risk:** Added `signature-verify` make target to verify latest release's digital signatures for the current GOOS and GOARCH combination.
26+
27+
### Changed
28+
- **debt:** Upgraded dependencies to their latest stable versions.
29+
30+
### Deprecated
31+
### Removed
32+
### Fixed
33+
- **defect:** Fixed `README.md` instructions for verifying module checksums.
34+
35+
### Security
36+
- **risk:** Upgraded `golang.org/x/crypto` to `v0.45.0` to address vulnerabilities.
37+
2038
---
2139
## [1.51.3] - 2025-11-07
2240

@@ -365,7 +383,8 @@ Date format: `YYYY-MM-DD`
365383
### Fixed
366384
### Security
367385

368-
[Unreleased]: https://github.com/sixafter/types/compare/v1.51.3...HEAD
386+
[Unreleased]: https://github.com/sixafter/types/compare/v1.52.0...HEAD
387+
[1.52.0]: https://github.com/sixafter/types/compare/v1.51.3...v1.52.0
369388
[1.51.3]: https://github.com/sixafter/types/compare/v1.50.0...v1.51.3
370389
[1.50.0]: https://github.com/sixafter/types/compare/v1.49.0...v1.50.0
371390
[1.49.0]: https://github.com/sixafter/types/compare/v1.48.0...v1.49.0

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,15 @@ vuln: ## Check for vulnerabilities
9292

9393
.PHONY: release-verify
9494
release-verify: ## Verify the release
95-
rm -fr dist
96-
goreleaser --config .goreleaser.yaml release --snapshot
95+
@scripts/verify-release.sh
96+
97+
.PHONY: module-verify
98+
mod-verify: ## Verify Go module integrity
99+
@scripts/verify-mod.sh
100+
101+
.PHONY: signature-verify
102+
signature-verify: ## Verify latest release's digital signatures
103+
@scripts/verify-sig.sh
97104

98105
.PHONY: help
99106
help: ## Display this help screen

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,42 @@ To verify the integrity of the `types` source, run the following commands:
3232
# Fetch the latest release tag from GitHub API (e.g., "v1.52.0")
3333
TAG=$(curl -s https://api.github.com/repos/sixafter/types/releases/latest | jq -r .tag_name)
3434

35-
# Remove leading "v" for filenames (e.g., "v1.52.0" -> "1.52.0")
35+
# Remove the leading "v" for filenames (e.g., "v1.52.0" -> "1.52.0")
3636
VERSION=${TAG#v}
3737

3838
# ---------------------------------------------------------------------
3939
# Verify the source archive using Sigstore bundles
4040
# ---------------------------------------------------------------------
4141

42-
# Download the release tarball and its corresponding bundle
43-
curl -LO https://github.com/sixafter/types/releases/download/${TAG}/types-${VERSION}.tar.gz
44-
curl -LO https://github.com/sixafter/types/releases/download/${TAG}/types-${VERSION}.tar.gz.bundle.json
42+
# Download the release tarball and its signature bundle
43+
curl -LO "https://github.com/sixafter/types/releases/download/${TAG}/types-${VERSION}.tar.gz"
44+
curl -LO "https://github.com/sixafter/types/releases/download/${TAG}/types-${VERSION}.tar.gz.sigstore.json"
4545

46-
# Verify the tarball with Cosign using your published public key
46+
# Verify the tarball with Cosign using the published public key
4747
cosign verify-blob \
48-
--key https://raw.githubusercontent.com/sixafter/types/main/cosign.pub \
49-
--bundle types-${VERSION}.tar.gz.bundle.json \
50-
types-${VERSION}.tar.gz
48+
--key "https://raw.githubusercontent.com/sixafter/types/main/cosign.pub" \
49+
--bundle "types-${VERSION}.tar.gz.sigstore.json" \
50+
"types-${VERSION}.tar.gz"
5151

5252
# ---------------------------------------------------------------------
5353
# Verify the checksums manifest using Sigstore bundles
5454
# ---------------------------------------------------------------------
5555

56-
# Download checksums.txt and its bundle
57-
curl -LO https://github.com/sixafter/types/releases/download/${TAG}/checksums.txt
58-
curl -LO https://github.com/sixafter/types/releases/download/${TAG}/checksums.txt.bundle.json
56+
curl -LO "https://github.com/sixafter/types/releases/download/${TAG}/checksums.txt"
57+
curl -LO "https://github.com/sixafter/types/releases/download/${TAG}/checksums.txt.sigstore.json"
5958

60-
# Verify checksums.txt with Cosign using your public key
59+
# Verify checksums.txt with Cosign
6160
cosign verify-blob \
62-
--key https://raw.githubusercontent.com/sixafter/types/main/cosign.pub \
63-
--bundle checksums.txt.bundle.json \
64-
checksums.txt
61+
--key "https://raw.githubusercontent.com/sixafter/types/main/cosign.pub" \
62+
--bundle "checksums.txt.sigstore.json" \
63+
"checksums.txt"
6564

6665
# ---------------------------------------------------------------------
6766
# Confirm local artifact integrity
6867
# ---------------------------------------------------------------------
6968

70-
# Compute and validate checksums locally
71-
shasum -a 256 -c checksums.txt
69+
shasum -a 256 -c checksups.txt
70+
7271
```
7372

7473
If valid, Cosign will output:

compass_heading.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

country.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

country_subdivision.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

email_address.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

entity_metadata.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)