Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -15,6 +15,7 @@ jobs:
uses: actions/setup-go@v6.0.0
with:
go-version-file: go.mod
cache: true

- name: Build
run: make
19 changes: 19 additions & 0 deletions .github/workflows/vulnerability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Vulnerability Check

on: [push, pull_request]

jobs:
vulncheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0

- name: Install Go
uses: actions/setup-go@v6.0.0
with:
go-version-file: go.mod
cache: true

- name: Check for vulnerabilities
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file.
See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Added:
* Added `AWSAccountID` field to `CloudDetail` struct in subscriptions model for AWS account identification
* Added `govulncheck` to CI pipeline for automated vulnerability detection
* New `.github/workflows/vulnerability.yml` workflow for parallel vulnerability checking
* Enabled Go module caching in GitHub Actions for improved build performance

### Updated:
* Updated Go toolchain to 1.25.3 to address stdlib vulnerabilities (GO-2025-4007, GO-2025-3751, GO-2025-3750, GO-2025-3749, GO-2025-3563)

### Tests:
* Added AWS account ID to subscription test fixtures (`TestSubscription_List`, `TestSubscription_Get`, `TestSubscription_Get_PublicEndpointAccess`)

## 0.40.0 (31st October 2025)

### Added:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/RedisLabs/rediscloud-go-api

go 1.24.0

toolchain go1.24.1
toolchain go1.25.3

require (
github.com/avast/retry-go/v4 v4.7.0
Expand Down
1 change: 1 addition & 0 deletions service/subscriptions/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (o Subscription) String() string {
type CloudDetail struct {
Provider *string `json:"provider,omitempty"`
CloudAccountID *int `json:"cloudAccountId,omitempty"`
AWSAccountID *string `json:"awsAccountId,omitempty"`
TotalSizeInGB *float64 `json:"totalSizeInGb,omitempty"`
Regions []*Region `json:"regions,omitempty"`
}
Expand Down
6 changes: 6 additions & 0 deletions subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ func TestSubscription_List(t *testing.T) {
{
"provider": "AWS",
"cloudAccountId": 2,
"awsAccountId": "123456789012",
"totalSizeInGb": 0.0062,
"regions": [
{
Expand Down Expand Up @@ -509,6 +510,7 @@ func TestSubscription_List(t *testing.T) {
{
Provider: redis.String("AWS"),
CloudAccountID: redis.Int(2),
AWSAccountID: redis.String("123456789012"),
TotalSizeInGB: redis.Float64(0.0062),
Regions: []*subscriptions.Region{
{
Expand Down Expand Up @@ -579,6 +581,7 @@ func TestSubscription_Get(t *testing.T) {
{
"provider": "AWS",
"cloudAccountId": 3,
"awsAccountId": "987654321098",
"totalSizeInGb": 4,
"regions": [
{
Expand Down Expand Up @@ -624,6 +627,7 @@ func TestSubscription_Get(t *testing.T) {
{
Provider: redis.String("AWS"),
CloudAccountID: redis.Int(3),
AWSAccountID: redis.String("987654321098"),
TotalSizeInGB: redis.Float64(4),
Regions: []*subscriptions.Region{
{
Expand Down Expand Up @@ -658,6 +662,7 @@ func TestSubscription_Get_PublicEndpointAccess(t *testing.T) {
{
"provider": "AWS",
"cloudAccountId": 3,
"awsAccountId": "111222333444",
"totalSizeInGb": 4,
"regions": [
{
Expand Down Expand Up @@ -704,6 +709,7 @@ func TestSubscription_Get_PublicEndpointAccess(t *testing.T) {
{
Provider: redis.String("AWS"),
CloudAccountID: redis.Int(3),
AWSAccountID: redis.String("111222333444"),
TotalSizeInGB: redis.Float64(4),
Regions: []*subscriptions.Region{
{
Expand Down