Skip to content

Commit f568a10

Browse files
committed
Fix permission issue
1 parent 9ef5994 commit f568a10

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.grype.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
ignore:
22
# path-to-regexp - dependency of aws-sdk-client-mock
33
- vulnerability: GHSA-j3q9-mxjg-w52f
4+
# This is a ReDoS vulnerability that we're not exposed to, since we don't take user regex input
5+
- vulnerability: GHSA-2g4f-4pwh-qvx6
6+
reason: "We don't take user regex input, so we're not vulnerable to this issue."
7+
# Axios vulnerability in checking NO_PROXY rules, which we don't use
8+
- vulnerability: GHSA-3p68-rc4w-qgx5
9+
reason: "We don't use NO_PROXY rules, so we're not vulnerable to this issue."
10+
- vulnerability: GHSA-j965-2qgj-vjmq
11+
reason: "We use v3 packages already, so we're not vulnerable to this issue."

packages/cdk/resources/Functions.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Fn} from "aws-cdk-lib"
2-
import {CfnSchedule, CfnScheduleGroup} from "aws-cdk-lib/aws-scheduler"
2+
import {CfnSchedule} from "aws-cdk-lib/aws-scheduler"
33
import {
44
ManagedPolicy,
55
PolicyStatement,
@@ -296,8 +296,7 @@ export class Functions extends Construct {
296296
"NotifyProcessorSchedule",
297297
`${props.stackName}-NotifySchedule`,
298298
"rate(1 minute)",
299-
notifyProcessor.function,
300-
props.stackName
299+
notifyProcessor.function
301300
)
302301

303302
const postDatedNotifyLambda = new TypescriptLambdaFunction(
@@ -332,8 +331,7 @@ export class Functions extends Construct {
332331
"PostDatedNotifySchedule",
333332
`${props.stackName}-PostDatedNotifySchedule`,
334333
"rate(15 minutes)",
335-
postDatedNotifyLambda.function,
336-
props.stackName
334+
postDatedNotifyLambda.function
337335
)
338336

339337
// Conditional: CheckPrescriptionStatusUpdates
@@ -446,8 +444,7 @@ export class Functions extends Construct {
446444
id: string,
447445
scheduleName: string,
448446
scheduleExpression: string,
449-
lambdaFunction: IFunction,
450-
stackName: string
447+
lambdaFunction: IFunction
451448
): void {
452449
const scheduleRole = new Role(this, `${id}Role`, {
453450
assumedBy: new ServicePrincipal("scheduler.amazonaws.com")
@@ -470,13 +467,8 @@ export class Functions extends Construct {
470467
}
471468
])
472469

473-
const scheduleGroup = new CfnScheduleGroup(this, `${id}Group`, {
474-
name: `${stackName}-${id}Group`
475-
})
476-
477470
new CfnSchedule(this, id, {
478471
name: scheduleName,
479-
groupName: scheduleGroup.name,
480472
scheduleExpression: scheduleExpression,
481473
flexibleTimeWindow: {mode: "OFF"},
482474
target: {

0 commit comments

Comments
 (0)