Skip to content

Commit

Permalink
Fix semgrep 'ci.billing-in-const-name'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jan 20, 2025
1 parent d8ddf71 commit f55c740
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ func (d *billingServiceAccountDataSource) Read(ctx context.Context, request data
}

// See http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html#step-2
const billingAccountID = "386209384616"
const serviceAccountID = "386209384616"

arn := arn.ARN{
Partition: d.Meta().Partition(ctx),
Service: "iam",
AccountID: billingAccountID,
AccountID: serviceAccountID,
Resource: "root",
}
data.ARN = fwflex.StringValueToFrameworkLegacy(ctx, arn.String())
data.ID = fwflex.StringValueToFrameworkLegacy(ctx, billingAccountID)
data.ID = fwflex.StringValueToFrameworkLegacy(ctx, serviceAccountID)

response.Diagnostics.Append(response.State.Set(ctx, &data)...)
}
Expand Down

0 comments on commit f55c740

Please sign in to comment.