Skip to content

Commit

Permalink
supress gosec false positives (#1228)
Browse files Browse the repository at this point in the history
Add gosec supressions for false positives
  • Loading branch information
insumity authored Aug 22, 2023
1 parent aa0063d commit 4a7bd10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions x/ccv/consumer/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
ConsumerRedistributeName = "cons_redistribute"

// ConsumerToSendToProviderName is a "buffer" address for outgoing fees to be transferred to the provider chain
//#nosec G101 -- (false positive) this is not a hardcoded credential
ConsumerToSendToProviderName = "cons_to_send_to_provider"
)

Expand Down
9 changes: 5 additions & 4 deletions x/ccv/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ const (
AttributeConsumerConsensusPubKey = "consumer_consensus_pub_key"

AttributeDistributionCurrentHeight = "current_distribution_height"
AttributeDistributionNextHeight = "next_distribution_height"
AttributeDistributionFraction = "distribution_fraction"
AttributeDistributionTotal = "total"
AttributeDistributionToProvider = "provider_amount"
//#nosec G101 -- (false positive) this is not a hardcoded credential
AttributeDistributionNextHeight = "next_distribution_height"
AttributeDistributionFraction = "distribution_fraction"
AttributeDistributionTotal = "total"
AttributeDistributionToProvider = "provider_amount"

AttributeConsumerRewardDenom = "consumer_reward_denom"
AttributeConsumerRewardDepositor = "consumer_reward_depositor"
Expand Down

0 comments on commit 4a7bd10

Please sign in to comment.