Skip to content

Commit c7e6125

Browse files
Explicitly ignore gosec warnings
These warning are expected and can be safely ignored.
1 parent cdf0281 commit c7e6125

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

driver/inmemory/internal/generate_matcher/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func main() {
197197
panic(err)
198198
}
199199

200+
/* #nosec G302 */
200201
f, err := os.OpenFile(matcherPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
201202
if err != nil {
202203
panic(err)

driver/sql/postgres/eventstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (e *EventStore) AppendToWithExecer(ctx context.Context, conn driverSQL.Exec
207207

208208
result, err := conn.ExecContext(
209209
ctx,
210-
/* #nosec */
210+
/* #nosec G201 */
211211
fmt.Sprintf(
212212
"INSERT INTO %s (%s) VALUES %s",
213213
tableName,

driver/sql/postgres/projector_aggregate_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func newAggregateProjectionStorage(
6161
projectionTableStr := QuoteString(projectionTable)
6262
eventStoreTableQuoted := QuoteIdentifier(eventStoreTable)
6363

64-
/* #nosec */
64+
/* #nosec G201 */
6565
return &aggregateProjectionStorage{
6666
projectionStateEncoder: projectionStateEncoder,
6767
logger: logger,

driver/sql/postgres/projector_stream_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func newStreamProjectionStorage(
5656
projectionTableQuoted := QuoteIdentifier(projectionTable)
5757
projectionTableStr := QuoteString(projectionTable)
5858

59-
/* #nosec */
59+
/* #nosec G201 */
6060
return &streamProjectionStorage{
6161
projectionName: projectionName,
6262
projectionStateEncoder: projectionStateEncoder,

strategy/json/sql/postgres/sql_schema.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $$;`
2727
// sqlTriggerEventStreamNotify a helper to create the sql on a event store table
2828
func sqlTriggerEventStreamNotifyTemplate(eventStreamName goengine.StreamName, eventStreamTable string) string {
2929
triggerName := fmt.Sprintf("%s_notify", eventStreamTable)
30-
/* #nosec */
30+
/* #nosec G201 */
3131
return fmt.Sprintf(
3232
`DO LANGUAGE plpgsql $$
3333
BEGIN
@@ -58,7 +58,7 @@ func sqlTriggerEventStreamNotifyTemplate(eventStreamName goengine.StreamName, ev
5858

5959
// StreamProjectorCreateSchema return the sql statement needed for the postgres database in order to use the StreamProjector
6060
func StreamProjectorCreateSchema(projectionTable string, streamName goengine.StreamName, streamTable string) []string {
61-
/* #nosec */
61+
/* #nosec G201 */
6262
return []string{
6363
sqlFuncEventStreamNotify,
6464
sqlTriggerEventStreamNotifyTemplate(streamName, streamTable),
@@ -79,7 +79,7 @@ func StreamProjectorCreateSchema(projectionTable string, streamName goengine.Str
7979

8080
// AggregateProjectorCreateSchema return the sql statement needed for the postgres database in order to use the AggregateProjector
8181
func AggregateProjectorCreateSchema(projectionTable string, streamName goengine.StreamName, streamTable string) []string {
82-
/* #nosec */
82+
/* #nosec G201 */
8383
return []string{
8484
sqlFuncEventStreamNotify,
8585
sqlTriggerEventStreamNotifyTemplate(streamName, streamTable),

0 commit comments

Comments
 (0)