Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-boone committed Mar 20, 2024
1 parent 4ca98ee commit 9b3c83e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/build-artifacts/github-actions-role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export class GithubActionsRole extends constructs.Construct {

const subjects = props.repositories.map(
(repository) =>
`repo:${repository.owner}/${repository.name}:ref:refs/heads/${props.trustedBranch ?? "master"}`,
`repo:${repository.owner}/${repository.name}:ref:refs/heads/${
props.trustedBranch ?? "master"
}`,
)
const fullyQualifiedSubjects = subjects.filter(
(subject) => !(subject.includes("?") || subject.includes("*")),
Expand Down
4 changes: 3 additions & 1 deletion src/build-artifacts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ const policyStatements = {
effect: iam.Effect.ALLOW,
actions: ["ssm:PutParameter"],
resources: [
`arn:aws:ssm:${cdk.Stack.of(scope).region}:${cdk.Stack.of(scope).account}:parameter/liflig-cdk/*/pipeline-variables/${prefix ?? "*"}`,
`arn:aws:ssm:${cdk.Stack.of(scope).region}:${
cdk.Stack.of(scope).account
}:parameter/liflig-cdk/*/pipeline-variables/${prefix ?? "*"}`,
],
}),
denyProdPipelines: (scope: constructs.Construct, bucket: s3.IBucket) =>
Expand Down

0 comments on commit 9b3c83e

Please sign in to comment.